@bigbinary/neeto-playwright-commons 3.1.2 → 3.1.3
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 +5 -1
- package/index.cjs.js.map +1 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -8902,6 +8902,7 @@ class OrganizationPage {
|
|
|
8902
8902
|
if (IS_DEV_ENV)
|
|
8903
8903
|
return;
|
|
8904
8904
|
const subdomainError = this.page.getByTestId(SIGNUP_SELECTORS.subdomainError);
|
|
8905
|
+
const subdomainAvailabilityMsg = this.page.getByTestId(SIGNUP_SELECTORS.subdomainAvailabilityMsg);
|
|
8905
8906
|
const organizationSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.organizationSubmitButton);
|
|
8906
8907
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
8907
8908
|
await this.page
|
|
@@ -8910,9 +8911,12 @@ class OrganizationPage {
|
|
|
8910
8911
|
await this.page
|
|
8911
8912
|
.getByTestId(SIGNUP_SELECTORS.subdomainNameTextField)
|
|
8912
8913
|
.fill(credentials.subdomainName);
|
|
8914
|
+
await test.expect(subdomainAvailabilityMsg.or(subdomainError)).toBeVisible({
|
|
8915
|
+
timeout: 15_000,
|
|
8916
|
+
});
|
|
8913
8917
|
const subdomainErrorCount = await subdomainError.count();
|
|
8914
8918
|
subdomainErrorCount !== 0 && (await this.updateSubdomainIfExists(appName));
|
|
8915
|
-
await test.expect(
|
|
8919
|
+
await test.expect(subdomainAvailabilityMsg).toBeVisible({ timeout: 45_000 });
|
|
8916
8920
|
await organizationSubmitButton.click();
|
|
8917
8921
|
await Promise.all([
|
|
8918
8922
|
test.expect(organizationSubmitButton).toBeHidden({ timeout: 45 * 1000 }),
|