@bigbinary/neeto-playwright-commons 1.22.32 → 1.22.34
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 +10 -11
- package/index.cjs.js.map +1 -1
- package/index.d.ts +18 -42
- package/index.js +10 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -180113,7 +180113,6 @@ const commands = {
|
|
|
180113
180113
|
await page.goto("/", { timeout: 35000 });
|
|
180114
180114
|
await page.waitForLoadState();
|
|
180115
180115
|
await use(page);
|
|
180116
|
-
await page.close();
|
|
180117
180116
|
},
|
|
180118
180117
|
mailerUtils: async ({ neetoPlaywrightUtilities }, use) => {
|
|
180119
180118
|
const mailerUtils = new MailerUtils(neetoPlaywrightUtilities);
|
|
@@ -193107,6 +193106,9 @@ class TeamMembers {
|
|
|
193107
193106
|
this.addMemberViaUI = async ({ emails = [faker.faker.internet.exampleEmail()], role = "standard", } = {}) => {
|
|
193108
193107
|
await this.page.getByTestId(MEMBER_SELECTORS.newButton).click();
|
|
193109
193108
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
193109
|
+
const continueButton = this.page.getByTestId(MEMBER_SELECTORS.continueButton);
|
|
193110
|
+
await test$1.expect(continueButton).toBeVisible();
|
|
193111
|
+
await test$1.expect(continueButton.getByTestId(COMMON_SELECTORS.uiSpinner)).toBeHidden({ timeout: 35000 });
|
|
193110
193112
|
await this.page
|
|
193111
193113
|
.getByTestId(MEMBER_FORM_SELECTORS.emailTextField)
|
|
193112
193114
|
.fill(emails.join(", "));
|
|
@@ -193114,7 +193116,7 @@ class TeamMembers {
|
|
|
193114
193116
|
await this.neetoPlaywrightUtilities.toggleElement({
|
|
193115
193117
|
locator: this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role)),
|
|
193116
193118
|
});
|
|
193117
|
-
await
|
|
193119
|
+
await continueButton.click();
|
|
193118
193120
|
if (IS_STAGING_ENV) {
|
|
193119
193121
|
await this.page
|
|
193120
193122
|
.getByTestId(COMMON_SELECTORS.paneBody)
|
|
@@ -193308,6 +193310,7 @@ neetoPlaywrightUtilities, loginPath = "/", }) => {
|
|
|
193308
193310
|
if (shouldSkipSetupAndTeardown())
|
|
193309
193311
|
return;
|
|
193310
193312
|
await page.goto(loginPath, { timeout: 20000 });
|
|
193313
|
+
await page.waitForLoadState("load", { timeout: 35000 });
|
|
193311
193314
|
await page
|
|
193312
193315
|
.getByTestId(LOGIN_SELECTORS.emailTextField)
|
|
193313
193316
|
.fill(CREDENTIALS.email);
|
|
@@ -193340,9 +193343,7 @@ class OrganizationPage {
|
|
|
193340
193343
|
return `https://${subdomainName}.${appName}.net`;
|
|
193341
193344
|
};
|
|
193342
193345
|
this.createOrganization = async ({ email, businessName, subdomainName, firstName, lastName, appName, }) => {
|
|
193343
|
-
if (!IS_STAGING_ENV)
|
|
193344
|
-
return;
|
|
193345
|
-
if (shouldSkipSetupAndTeardown())
|
|
193346
|
+
if (!IS_STAGING_ENV || shouldSkipSetupAndTeardown())
|
|
193346
193347
|
return;
|
|
193347
193348
|
const defaultOtp = "123456";
|
|
193348
193349
|
const appNameInLowerCase = appName.toLowerCase();
|
|
@@ -193350,6 +193351,7 @@ class OrganizationPage {
|
|
|
193350
193351
|
isNeetoAuth
|
|
193351
193352
|
? await this.page.goto(ROUTES.neetoAuthSignup, { timeout: 20000 })
|
|
193352
193353
|
: await this.page.goto(`${ROUTES.neetoAuthSignup}?redirect_uri=${appNameInLowerCase}.net/admin`, { timeout: 20000 });
|
|
193354
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
193353
193355
|
const submitButton = this.page.getByTestId(SIGNUP_SELECTORS.submitButton);
|
|
193354
193356
|
await this.page.getByTestId(SIGNUP_SELECTORS.emailTextField).fill(email);
|
|
193355
193357
|
await submitButton.click();
|
|
@@ -193373,9 +193375,7 @@ class OrganizationPage {
|
|
|
193373
193375
|
});
|
|
193374
193376
|
};
|
|
193375
193377
|
this.setupOrganization = async (product) => {
|
|
193376
|
-
if (!IS_STAGING_ENV)
|
|
193377
|
-
return;
|
|
193378
|
-
if (shouldSkipSetupAndTeardown())
|
|
193378
|
+
if (!IS_STAGING_ENV || shouldSkipSetupAndTeardown())
|
|
193379
193379
|
return;
|
|
193380
193380
|
const { user } = readFileSyncIfExists();
|
|
193381
193381
|
await this.createOrganization({
|
|
@@ -199063,10 +199063,9 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
199063
199063
|
use: {
|
|
199064
199064
|
baseURL: process.env.BASE_URL,
|
|
199065
199065
|
testIdAttribute: "data-cy",
|
|
199066
|
-
trace: "on",
|
|
199067
|
-
screenshot: "on",
|
|
199066
|
+
trace: "retain-on-failure",
|
|
199067
|
+
screenshot: "only-on-failure",
|
|
199068
199068
|
navigationTimeout: 35000,
|
|
199069
|
-
video: "on",
|
|
199070
199069
|
actionTimeout: 10 * 1000,
|
|
199071
199070
|
timezoneId: "Asia/Calcutta",
|
|
199072
199071
|
geolocation: { latitude: 18.553187, longitude: 73.948313 }, // BB Pune office
|