@bigbinary/neeto-playwright-commons 4.6.6 → 4.6.8

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.
Files changed (2) hide show
  1. package/index.js +9 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -17902,10 +17902,11 @@ class GooglePage extends IntegrationBase {
17902
17902
  await this.waitForGoogleAuthURL();
17903
17903
  await this.selectGoogleAccount(appName);
17904
17904
  await this.page.waitForLoadState("load", { timeout: 25_000 });
17905
- await this.page.waitForURL(new RegExp(THIRD_PARTY_ROUTES.google.consentScreen));
17906
- await this.page
17907
- .getByRole("button", { name: GOOGLE_LOGIN_TEXTS.allow })
17908
- .click();
17905
+ const allowButton = this.page.getByRole("button", {
17906
+ name: GOOGLE_LOGIN_TEXTS.allow,
17907
+ });
17908
+ await expect(allowButton).toBeVisible({ timeout: 25_000 });
17909
+ await allowButton.click();
17909
17910
  };
17910
17911
  selectGoogleAccount = async (appName = this.appName) => {
17911
17912
  const chooseAnAccountHeading = this.page.getByText(GOOGLE_LOGIN_TEXTS.chooseAnAccount, { exact: true });
@@ -121899,7 +121900,9 @@ class CustomDomainPage {
121899
121900
  await Promise.all([
121900
121901
  expect(validateButton).toBeVisible(),
121901
121902
  expect(this.page
121902
- .getByTestId(COMMON_SELECTORS.paneBody)
121903
+ .getByTestId(IS_SHADCN_UI
121904
+ ? COMMON_SELECTORS.sheetWrapper
121905
+ : COMMON_SELECTORS.paneBody)
121903
121906
  .getByRole("cell", { name: domain.split(".")[0] })).toBeVisible(),
121904
121907
  ]);
121905
121908
  await this.neetoPlaywrightUtilities.waitForPageLoad();
@@ -122054,7 +122057,7 @@ class CustomDomainPage {
122054
122057
  await Promise.all(customDomains.map(({ hostname }) => this.customDomainApi.delete(hostname)));
122055
122058
  };
122056
122059
  isCertificateLimitExceeded = () => this.page
122057
- .getByTestId(COMMON_SELECTORS.paneBody)
122060
+ .getByTestId(IS_SHADCN_UI ? COMMON_SELECTORS.sheetWrapper : COMMON_SELECTORS.paneBody)
122058
122061
  .getByText(RegExp(CERTIFICATE_LIMIT_EXCEEDED_REGEXP, "i"))
122059
122062
  .isVisible();
122060
122063
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.6.6",
3
+ "version": "4.6.8",
4
4
  "description": "A package encapsulating common playwright code across neeto projects.",
5
5
  "repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
6
6
  "license": "apache-2.0",