@bigbinary/neeto-playwright-commons 1.26.14 → 1.26.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +9 -2
- package/index.cjs.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +9 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2519,6 +2519,9 @@ declare class WebhooksPage {
|
|
|
2519
2519
|
webhookToken: never;
|
|
2520
2520
|
webhookSiteURL: string;
|
|
2521
2521
|
}>;
|
|
2522
|
+
/**
|
|
2523
|
+
* @deprecated This method is deprecated. Use getTokenViaAPI instead.
|
|
2524
|
+
*/
|
|
2522
2525
|
/**
|
|
2523
2526
|
*
|
|
2524
2527
|
* Retrieves the webhook URL and token from a third-party site.
|
package/index.js
CHANGED
|
@@ -116886,6 +116886,9 @@ class WebhooksPage {
|
|
|
116886
116886
|
webhookSiteURL: `${THIRD_PARTY_ROUTES.webhooks.site}${webhookToken}`,
|
|
116887
116887
|
};
|
|
116888
116888
|
};
|
|
116889
|
+
/**
|
|
116890
|
+
* @deprecated This method is deprecated. Use getTokenViaAPI instead.
|
|
116891
|
+
*/
|
|
116889
116892
|
this.getWebhookURL = async () => {
|
|
116890
116893
|
var _a;
|
|
116891
116894
|
const WEBHOOK_URL_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/g;
|
|
@@ -118490,8 +118493,8 @@ class TeamMembers {
|
|
|
118490
118493
|
}
|
|
118491
118494
|
}
|
|
118492
118495
|
|
|
118493
|
-
const fillCredentialsAndSubmit = async ({ page, loginPath
|
|
118494
|
-
await page.goto(loginPath, { timeout: 30000 });
|
|
118496
|
+
const fillCredentialsAndSubmit = async ({ page, loginPath, email = CREDENTIALS.email, }) => {
|
|
118497
|
+
loginPath && (await page.goto(loginPath, { timeout: 30000 }));
|
|
118495
118498
|
await page.waitForLoadState("load", { timeout: 35000 });
|
|
118496
118499
|
await page.getByTestId(LOGIN_SELECTORS.emailTextField).fill(email);
|
|
118497
118500
|
await page
|
|
@@ -118675,6 +118678,10 @@ class OrganizationPage {
|
|
|
118675
118678
|
}).toPass({ timeout: loginTimeout });
|
|
118676
118679
|
};
|
|
118677
118680
|
this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout = 2 * 60 * 1000) => {
|
|
118681
|
+
if (IS_DEV_ENV) {
|
|
118682
|
+
await fillCredentialsAndSubmit({ page: this.page, email });
|
|
118683
|
+
return;
|
|
118684
|
+
}
|
|
118678
118685
|
await this.fillEmailAndSubmit(email, loginTimeout);
|
|
118679
118686
|
await this.fillOTP();
|
|
118680
118687
|
};
|