@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.js
CHANGED
|
@@ -8881,6 +8881,7 @@ class OrganizationPage {
|
|
|
8881
8881
|
if (IS_DEV_ENV)
|
|
8882
8882
|
return;
|
|
8883
8883
|
const subdomainError = this.page.getByTestId(SIGNUP_SELECTORS.subdomainError);
|
|
8884
|
+
const subdomainAvailabilityMsg = this.page.getByTestId(SIGNUP_SELECTORS.subdomainAvailabilityMsg);
|
|
8884
8885
|
const organizationSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.organizationSubmitButton);
|
|
8885
8886
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
8886
8887
|
await this.page
|
|
@@ -8889,9 +8890,12 @@ class OrganizationPage {
|
|
|
8889
8890
|
await this.page
|
|
8890
8891
|
.getByTestId(SIGNUP_SELECTORS.subdomainNameTextField)
|
|
8891
8892
|
.fill(credentials.subdomainName);
|
|
8893
|
+
await expect(subdomainAvailabilityMsg.or(subdomainError)).toBeVisible({
|
|
8894
|
+
timeout: 15_000,
|
|
8895
|
+
});
|
|
8892
8896
|
const subdomainErrorCount = await subdomainError.count();
|
|
8893
8897
|
subdomainErrorCount !== 0 && (await this.updateSubdomainIfExists(appName));
|
|
8894
|
-
await expect(
|
|
8898
|
+
await expect(subdomainAvailabilityMsg).toBeVisible({ timeout: 45_000 });
|
|
8895
8899
|
await organizationSubmitButton.click();
|
|
8896
8900
|
await Promise.all([
|
|
8897
8901
|
expect(organizationSubmitButton).toBeHidden({ timeout: 45 * 1000 }),
|