@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 CHANGED
@@ -116907,6 +116907,9 @@ class WebhooksPage {
116907
116907
  webhookSiteURL: `${THIRD_PARTY_ROUTES.webhooks.site}${webhookToken}`,
116908
116908
  };
116909
116909
  };
116910
+ /**
116911
+ * @deprecated This method is deprecated. Use getTokenViaAPI instead.
116912
+ */
116910
116913
  this.getWebhookURL = async () => {
116911
116914
  var _a;
116912
116915
  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;
@@ -118511,8 +118514,8 @@ class TeamMembers {
118511
118514
  }
118512
118515
  }
118513
118516
 
118514
- const fillCredentialsAndSubmit = async ({ page, loginPath = "/", email = CREDENTIALS.email, }) => {
118515
- await page.goto(loginPath, { timeout: 30000 });
118517
+ const fillCredentialsAndSubmit = async ({ page, loginPath, email = CREDENTIALS.email, }) => {
118518
+ loginPath && (await page.goto(loginPath, { timeout: 30000 }));
118516
118519
  await page.waitForLoadState("load", { timeout: 35000 });
118517
118520
  await page.getByTestId(LOGIN_SELECTORS.emailTextField).fill(email);
118518
118521
  await page
@@ -118696,6 +118699,10 @@ class OrganizationPage {
118696
118699
  }).toPass({ timeout: loginTimeout });
118697
118700
  };
118698
118701
  this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout = 2 * 60 * 1000) => {
118702
+ if (IS_DEV_ENV) {
118703
+ await fillCredentialsAndSubmit({ page: this.page, email });
118704
+ return;
118705
+ }
118699
118706
  await this.fillEmailAndSubmit(email, loginTimeout);
118700
118707
  await this.fillOTP();
118701
118708
  };