@bigbinary/neeto-playwright-commons 1.19.7 → 1.19.9

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
@@ -4044,6 +4044,9 @@ class CustomCommands {
4044
4044
  await test$1.expect(toastrCloseButton).toBeHidden();
4045
4045
  }
4046
4046
  };
4047
+ /**
4048
+ * @deprecated Use reload & waitForPageLoad instead.
4049
+ */
4047
4050
  this.reloadAndWait = async (
4048
4051
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4049
4052
  requestCount, customPageContext = this.page,
@@ -188878,7 +188881,7 @@ const GOOGLE_LOGIN_TEXTS = {
188878
188881
  googleAccount: "Google Account:",
188879
188882
  connectYourGoogleAccount: "Connect your Google account",
188880
188883
  signInWithGoogle: "Sign in with Google",
188881
- signInHeading: (appName) => `Sign in to ${appName}.net`,
188884
+ signInHeading: (appName) => new RegExp(`(You’re signing back in to ${appName}\\.net|Sign in to ${appName}\\.net)`, "i"),
188882
188885
  continue: "Continue",
188883
188886
  selectAll: "Select All",
188884
188887
  appNotVerified: "Google hasn’t verified this app",
@@ -191216,9 +191219,9 @@ class SlackPage extends IntegrationBase {
191216
191219
  .locator(SLACK_SELECTORS.loginPassword)
191217
191220
  .pressSequentially(slackLoginPassword, { delay: 10 });
191218
191221
  await slackWebappPage.locator(SLACK_SELECTORS.signInButton).click();
191219
- await slackWebappPage
191220
- .locator(SLACK_SELECTORS.redirectOpenInBrowser)
191221
- .click();
191222
+ const redirectOpenInBrowser = slackWebappPage.locator(SLACK_SELECTORS.redirectOpenInBrowser);
191223
+ await test$1.expect(redirectOpenInBrowser).toBeVisible({ timeout: 10000 });
191224
+ await redirectOpenInBrowser.click();
191222
191225
  await this.setupCloseHandlers(slackWebappPage);
191223
191226
  return;
191224
191227
  }
@@ -191400,12 +191403,10 @@ class ZapierPage extends IntegrationBase {
191400
191403
  await zapierWebPage.goto(THIRD_PARTY_ROUTES.zapier.login, {
191401
191404
  referer: THIRD_PARTY_ROUTES.zapier.login,
191402
191405
  });
191403
- await test$1.expect(zapierWebPage.getByRole("link", {
191404
- name: ZAPIER_WEB_TEXTS.startFreeWithEmail,
191405
- })).toBeVisible();
191406
191406
  const loginLink = zapierWebPage.getByRole("link", {
191407
191407
  name: ZAPIER_WEB_TEXTS.logIn,
191408
191408
  });
191409
+ await test$1.expect(loginLink).toBeVisible();
191409
191410
  await simulateClickWithDelay({ element: loginLink, page: zapierWebPage });
191410
191411
  const emailField = zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.email);
191411
191412
  const passwordField = zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.password);