@bigbinary/neeto-playwright-commons 1.23.6 → 1.23.7
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 +24 -22
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +24 -22
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -117887,6 +117887,7 @@ const SLACK_WEB_TEXTS = {
|
|
|
117887
117887
|
deleteChannel: "Delete channel",
|
|
117888
117888
|
};
|
|
117889
117889
|
const ZAPIER_WEB_TEXTS = {
|
|
117890
|
+
create: "Create",
|
|
117890
117891
|
account: "Account",
|
|
117891
117892
|
email: "Email",
|
|
117892
117893
|
continue: "Continue",
|
|
@@ -120904,9 +120905,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
120904
120905
|
await apiKeyBox.click();
|
|
120905
120906
|
await apiKeyBox.pressSequentially(zapierApiKey, { delay: 100 });
|
|
120906
120907
|
await signInPage
|
|
120907
|
-
.getByRole("button", {
|
|
120908
|
-
name: RegExp(ZAPIER_WEB_TEXTS.yesContinueTo),
|
|
120909
|
-
})
|
|
120908
|
+
.getByRole("button", { name: RegExp(ZAPIER_WEB_TEXTS.yesContinueTo) })
|
|
120910
120909
|
.click();
|
|
120911
120910
|
await this.continueButton.click({ timeout: 30000 });
|
|
120912
120911
|
await test.expect(this.zapierWebPage
|
|
@@ -120916,17 +120915,20 @@ class ZapierPage extends IntegrationBase {
|
|
|
120916
120915
|
const testTriggerButton = this.zapierWebPage.getByRole("button", {
|
|
120917
120916
|
name: ZAPIER_WEB_TEXTS.testTrigger,
|
|
120918
120917
|
});
|
|
120919
|
-
await test.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.spinner)).
|
|
120920
|
-
timeout: 25000,
|
|
120921
|
-
});
|
|
120922
|
-
await testTriggerButton.click();
|
|
120923
|
-
await test.expect(this.zapierWebPage.getByText(ZAPIER_WEB_TEXTS.testCurrentlyInQueue)).toBeHidden({ timeout: 20000 });
|
|
120924
|
-
await test.expect(this.zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.statusLabel, {
|
|
120925
|
-
exact: true,
|
|
120926
|
-
})).toBeVisible({ timeout: 10000 });
|
|
120918
|
+
await test.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.spinner)).toHaveCount(0, { timeout: 30000 });
|
|
120927
120919
|
const continueWithRecordBtn = this.zapierWebPage.getByRole("button", {
|
|
120928
120920
|
name: ZAPIER_WEB_TEXTS.continueWithSelectedRecord,
|
|
120929
120921
|
});
|
|
120922
|
+
await test.expect(testTriggerButton.or(continueWithRecordBtn)).toBeVisible({
|
|
120923
|
+
timeout: 30000,
|
|
120924
|
+
});
|
|
120925
|
+
if (await testTriggerButton.isVisible()) {
|
|
120926
|
+
await testTriggerButton.click();
|
|
120927
|
+
await test.expect(this.zapierWebPage.getByText(ZAPIER_WEB_TEXTS.testCurrentlyInQueue)).toBeHidden({ timeout: 20000 });
|
|
120928
|
+
await test.expect(this.zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.statusLabel, {
|
|
120929
|
+
exact: true,
|
|
120930
|
+
})).toBeVisible({ timeout: 10000 });
|
|
120931
|
+
}
|
|
120930
120932
|
await continueWithRecordBtn.click({ timeout: 30000 });
|
|
120931
120933
|
await test.expect(continueWithRecordBtn).toBeHidden({ timeout: 15000 });
|
|
120932
120934
|
await this.continueButton.click({ timeout: 20000 });
|
|
@@ -120970,18 +120972,20 @@ class ZapierPage extends IntegrationBase {
|
|
|
120970
120972
|
.click();
|
|
120971
120973
|
}).toPass({ timeout: 40000 });
|
|
120972
120974
|
}
|
|
120973
|
-
await test.expect(connectionLocator).toHaveCount(0, {
|
|
120974
|
-
timeout: 10000,
|
|
120975
|
-
});
|
|
120975
|
+
await test.expect(connectionLocator).toHaveCount(0, { timeout: 10000 });
|
|
120976
120976
|
};
|
|
120977
120977
|
this.verifyZapIsTriggered = ({ productName, submittedEmail, zapTriggeredAfter, timeout = 2 * 60000, }) => this.mailerUtils.findMessage({ to: ZAPIER_TEST_EMAIL(productName), body: submittedEmail }, { timeout, receivedAfter: zapTriggeredAfter });
|
|
120978
120978
|
this.skipIfTaskLimitIsExhausted = async () => {
|
|
120979
|
-
var _a;
|
|
120980
120979
|
// Zapier provides 100 free task limit for free account; skip test if it's exhausted
|
|
120981
|
-
|
|
120982
|
-
|
|
120983
|
-
});
|
|
120984
|
-
await test.expect(
|
|
120980
|
+
var _a;
|
|
120981
|
+
const universalSidebar = this.zapierWebPage.locator(ZAPIER_SELECTORS.universalSidebar);
|
|
120982
|
+
await test.expect(universalSidebar).toBeVisible({ timeout: 30000 });
|
|
120983
|
+
await test.expect(async () => {
|
|
120984
|
+
await universalSidebar
|
|
120985
|
+
.getByRole("button", { name: ZAPIER_WEB_TEXTS.create })
|
|
120986
|
+
.hover();
|
|
120987
|
+
await test.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.sidebarFooter)).toBeVisible();
|
|
120988
|
+
}).toPass({ timeout: 30000 });
|
|
120985
120989
|
if (await this.zapierWebPage
|
|
120986
120990
|
.getByText(RegExp(ZAPIER_WEB_TEXTS.trialEndsRegExp))
|
|
120987
120991
|
.isVisible()) {
|
|
@@ -121024,9 +121028,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
121024
121028
|
await this.page
|
|
121025
121029
|
.getByTestId(COMMON_SELECTORS.alertModalSubmitButton)
|
|
121026
121030
|
.click();
|
|
121027
|
-
await this.neetoPlaywrightUtilities.verifyToast({
|
|
121028
|
-
message: toastMessage,
|
|
121029
|
-
});
|
|
121031
|
+
await this.neetoPlaywrightUtilities.verifyToast({ message: toastMessage });
|
|
121030
121032
|
await this.verifyIntegrationStatus("disconnected");
|
|
121031
121033
|
};
|
|
121032
121034
|
this.generateAPIKey = async (apiKeyLabel) => {
|