mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 03:26:38 +02:00
♻️ Refactor LoginPage POM
This commit is contained in:
parent
127c47a35a
commit
9fd9e0178e
5 changed files with 53 additions and 71 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue