♻️ Refactor LoginPage POM

This commit is contained in:
Belén Albeza 2024-05-08 12:14:56 +02:00
parent 127c47a35a
commit 9fd9e0178e
5 changed files with 53 additions and 71 deletions

View file

@ -6,6 +6,7 @@ export class BasePage {
if (typeof path !== "string" && !(path instanceof RegExp)) {
throw new TypeError("Invalid path argument. Must be a string or a RegExp.");
}
const url = typeof path === "string" ? `**/api/rpc/command/${path}` : path;
const interceptConfig = {
status: 200,