@bigbinary/neeto-playwright-commons 4.8.10 → 4.8.11

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 (3) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +5 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5505,6 +5505,7 @@ declare class OrganizationPage {
5505
5505
  * @endexample
5506
5506
  */
5507
5507
  fillOTP: (otp?: string) => Promise<void>;
5508
+ waitForOrganizationSync: () => Promise<void>;
5508
5509
  /**
5509
5510
  *
5510
5511
  * Waits for the page to load, fills the signup email field, clicks submit, and waits until the submit button is hidden (up to 35s). Use this as the first step when driving the email-based signup flow before entering an OTP.
@@ -9053,6 +9054,7 @@ declare const SIGNUP_SELECTORS: {
9053
9054
  lastNameTextField: string;
9054
9055
  organizationNameTextField: string;
9055
9056
  organizationSubmitButton: string;
9057
+ organizationSyncContainer: string;
9056
9058
  otpTextBox: string;
9057
9059
  profileSubmitButton: string;
9058
9060
  signupViaEmailButton: string;
package/index.js CHANGED
@@ -1950,6 +1950,7 @@ const SIGNUP_SELECTORS = {
1950
1950
  lastNameTextField: "signup-profile-last-name-text-field",
1951
1951
  organizationNameTextField: "signup-organization-name-text-field",
1952
1952
  organizationSubmitButton: "signup-organization-submit-button",
1953
+ organizationSyncContainer: "organization-sync-container",
1953
1954
  otpTextBox: "otpinput-otp-number",
1954
1955
  profileSubmitButton: "signup-profile-submit-button",
1955
1956
  signupViaEmailButton: "signup-via-email-button",
@@ -18107,6 +18108,7 @@ class OrganizationPage {
18107
18108
  await otpTextBox.fill(otp);
18108
18109
  await expect(otpTextBox).toBeHidden({ timeout: 35_000 });
18109
18110
  };
18111
+ waitForOrganizationSync = () => expect(this.page.getByTestId(SIGNUP_SELECTORS.organizationSyncContainer)).toBeHidden({ timeout: 60_000 });
18110
18112
  submitEmail = async (email) => {
18111
18113
  await this.neetoPlaywrightUtilities.waitForPageLoad();
18112
18114
  await this.page.getByTestId(SIGNUP_SELECTORS.emailTextField).fill(email);
@@ -18178,6 +18180,7 @@ class OrganizationPage {
18178
18180
  await this.page.waitForURL(new RegExp(getGlobalUserState().domain), {
18179
18181
  waitUntil: "load",
18180
18182
  });
18183
+ await this.waitForOrganizationSync();
18181
18184
  };
18182
18185
  createOrganization = async (params) => {
18183
18186
  if (shouldSkipSetupAndTeardown())
@@ -18405,6 +18408,7 @@ class OrganizationPage {
18405
18408
  appName,
18406
18409
  });
18407
18410
  await this.page.waitForURL(new RegExp(credentials.domain));
18411
+ await this.waitForOrganizationSync();
18408
18412
  }
18409
18413
  else {
18410
18414
  await createOrganizationViaApi({
@@ -18417,6 +18421,7 @@ class OrganizationPage {
18417
18421
  redirectUri: credentials.domain,
18418
18422
  });
18419
18423
  await this.page.waitForURL(new RegExp(credentials.domain));
18424
+ await this.waitForOrganizationSync();
18420
18425
  }
18421
18426
  };
18422
18427
  signUp = async (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.8.10",
3
+ "version": "4.8.11",
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",