@bigbinary/neeto-playwright-commons 1.11.6 → 1.11.8
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 +7 -11
- package/index.cjs.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +7 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4146,6 +4146,8 @@ declare const SLACK_WEB_TEXTS: {
|
|
|
4146
4146
|
*
|
|
4147
4147
|
* welcomeText(zapierLoginEmail): Method to generate welcome text for Zapier login.
|
|
4148
4148
|
*
|
|
4149
|
+
* connectNeetoFormStaging: Text for connecting to NeetoForm Staging.
|
|
4150
|
+
*
|
|
4149
4151
|
*/
|
|
4150
4152
|
declare const ZAPIER_WEB_TEXTS: {
|
|
4151
4153
|
account: string;
|
|
@@ -4170,6 +4172,7 @@ declare const ZAPIER_WEB_TEXTS: {
|
|
|
4170
4172
|
trialEndsRegExp: string;
|
|
4171
4173
|
testCurrentlyInQueue: string;
|
|
4172
4174
|
welcomeText: (zapierLoginEmail: string) => string;
|
|
4175
|
+
connectNeetoFormStaging: string;
|
|
4173
4176
|
};
|
|
4174
4177
|
/**
|
|
4175
4178
|
*
|
package/index.js
CHANGED
|
@@ -3510,10 +3510,10 @@ class CustomCommands {
|
|
|
3510
3510
|
const pageContext = customPageContext !== null && customPageContext !== void 0 ? customPageContext : this.page;
|
|
3511
3511
|
await pageContext.waitForLoadState("load");
|
|
3512
3512
|
await Promise.all([
|
|
3513
|
-
expect(pageContext.getByTestId(COMMON_SELECTORS.pageLoader)).
|
|
3513
|
+
expect(pageContext.getByTestId(COMMON_SELECTORS.pageLoader)).toHaveCount(0, {
|
|
3514
3514
|
timeout: visibilityTimeout,
|
|
3515
3515
|
}),
|
|
3516
|
-
expect(pageContext.getByTestId(COMMON_SELECTORS.
|
|
3516
|
+
expect(pageContext.getByTestId(COMMON_SELECTORS.uiSpinner)).toHaveCount(0, {
|
|
3517
3517
|
timeout: visibilityTimeout,
|
|
3518
3518
|
}),
|
|
3519
3519
|
]);
|
|
@@ -12889,6 +12889,7 @@ const ZAPIER_WEB_TEXTS = {
|
|
|
12889
12889
|
trialEndsRegExp: "Trial ends on",
|
|
12890
12890
|
testCurrentlyInQueue: "Test currently in queue",
|
|
12891
12891
|
welcomeText: (zapierLoginEmail) => `Welcome back ${zapierLoginEmail}`,
|
|
12892
|
+
connectNeetoFormStaging: "Connect neetoForm Staging",
|
|
12892
12893
|
};
|
|
12893
12894
|
const TOASTR_MESSAGES = {
|
|
12894
12895
|
zapierApiKeyGenerated: "Zapier API key is generated successfully!",
|
|
@@ -13598,13 +13599,9 @@ class ZapierPage extends IntegrationBase {
|
|
|
13598
13599
|
.getByRole("button", { name: ZAPIER_WEB_TEXTS.editExistingDraft })
|
|
13599
13600
|
.click();
|
|
13600
13601
|
}
|
|
13601
|
-
await this.zapierWebPage
|
|
13602
|
-
.getByRole("link", { name: ZAPIER_WEB_TEXTS.account })
|
|
13603
|
-
.or(this.zapierWebPage.locator(ZAPIER_SELECTORS.zapAccountSubstep))
|
|
13604
|
-
.click();
|
|
13605
13602
|
const signInPagePromise = this.zapierWebPage.waitForEvent("popup");
|
|
13606
13603
|
await this.zapierWebPage
|
|
13607
|
-
.
|
|
13604
|
+
.getByRole("button", { name: ZAPIER_WEB_TEXTS.connectNeetoFormStaging })
|
|
13608
13605
|
.click();
|
|
13609
13606
|
const signInPage = await signInPagePromise;
|
|
13610
13607
|
await signInPage.waitForLoadState();
|
|
@@ -13648,12 +13645,11 @@ class ZapierPage extends IntegrationBase {
|
|
|
13648
13645
|
await this.continueButton.click();
|
|
13649
13646
|
await this.continueButton.click();
|
|
13650
13647
|
await this.zapierWebPage
|
|
13651
|
-
.
|
|
13652
|
-
.getByLabel(ZAPIER_WEB_TEXTS.publish)
|
|
13648
|
+
.getByLabel(ZAPIER_WEB_TEXTS.publish, { exact: true })
|
|
13653
13649
|
.or(this.zapierWebPage
|
|
13654
13650
|
.locator(ZAPIER_SELECTORS.zapOpenSubstepContainer)
|
|
13655
13651
|
.getByRole("button", { name: ZAPIER_WEB_TEXTS.publish }))
|
|
13656
|
-
.click();
|
|
13652
|
+
.click({ timeout: 20000 });
|
|
13657
13653
|
await this.zapierWebPage
|
|
13658
13654
|
.locator(ZAPIER_SELECTORS.modal)
|
|
13659
13655
|
.getByLabel(ZAPIER_WEB_TEXTS.publish)
|
|
@@ -13694,7 +13690,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
13694
13690
|
timeout: 10000,
|
|
13695
13691
|
});
|
|
13696
13692
|
};
|
|
13697
|
-
this.verifyZapIsTriggered = ({ productName, submittedEmail, zapTriggeredAfter, }) => this.mailosaur.messages.get(process.env.INTEGRATION_MAILOSAUR_SERVER_ID, { sentTo: ZAPIER_TEST_EMAIL(productName), body: submittedEmail }, { timeout:
|
|
13693
|
+
this.verifyZapIsTriggered = ({ productName, submittedEmail, zapTriggeredAfter, }) => this.mailosaur.messages.get(process.env.INTEGRATION_MAILOSAUR_SERVER_ID, { sentTo: ZAPIER_TEST_EMAIL(productName), body: submittedEmail }, { timeout: 5 * 60000, receivedAfter: zapTriggeredAfter });
|
|
13698
13694
|
this.skipIfTaskLimitIsExhausted = async () => {
|
|
13699
13695
|
var _a;
|
|
13700
13696
|
// Zapier provides 100 free task limit for free account; skip test if it's exhausted
|