@bigbinary/neeto-playwright-commons 1.11.12 → 1.11.13
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 +18 -7
- package/index.cjs.js.map +1 -1
- package/index.d.ts +10 -3
- package/index.js +18 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1496,7 +1496,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1496
1496
|
* await zapierPage.reconnectAccountAndPublish("your-zapier-api-key");
|
|
1497
1497
|
* @endexample
|
|
1498
1498
|
*/
|
|
1499
|
-
reconnectAccountAndPublish: (zapierApiKey: string) => Promise<void>;
|
|
1499
|
+
reconnectAccountAndPublish: (zapierApiKey: string, appName: string) => Promise<void>;
|
|
1500
1500
|
/**
|
|
1501
1501
|
*
|
|
1502
1502
|
* Deletes all connections in zapier. It takes the following parameters:
|
|
@@ -4106,6 +4106,7 @@ declare const ZAPIER_SELECTORS: {
|
|
|
4106
4106
|
universalSidebar: string;
|
|
4107
4107
|
sidebarFooter: string;
|
|
4108
4108
|
contextualSideBar: string;
|
|
4109
|
+
iconContainer: string;
|
|
4109
4110
|
};
|
|
4110
4111
|
/**
|
|
4111
4112
|
*
|
|
@@ -4389,7 +4390,11 @@ declare const SLACK_WEB_TEXTS: {
|
|
|
4389
4390
|
*
|
|
4390
4391
|
* welcomeText(zapierLoginEmail): Method to generate welcome text for Zapier login.
|
|
4391
4392
|
*
|
|
4392
|
-
*
|
|
4393
|
+
* connectStagingApp: Text for connecting to Staging application.
|
|
4394
|
+
*
|
|
4395
|
+
* zapierWorkflowTriggered: Text subject for the Outbound email.
|
|
4396
|
+
*
|
|
4397
|
+
* confirmPublishing: Text to confirm the publishing of the updated Zap.
|
|
4393
4398
|
*
|
|
4394
4399
|
*/
|
|
4395
4400
|
declare const ZAPIER_WEB_TEXTS: {
|
|
@@ -4415,7 +4420,9 @@ declare const ZAPIER_WEB_TEXTS: {
|
|
|
4415
4420
|
trialEndsRegExp: string;
|
|
4416
4421
|
testCurrentlyInQueue: string;
|
|
4417
4422
|
welcomeText: (zapierLoginEmail: string) => string;
|
|
4418
|
-
|
|
4423
|
+
connectStagingApp: (appName: string) => string;
|
|
4424
|
+
zapierWorkflowTriggered: string;
|
|
4425
|
+
confirmPublishing: string;
|
|
4419
4426
|
};
|
|
4420
4427
|
/**
|
|
4421
4428
|
*
|
package/index.js
CHANGED
|
@@ -13069,7 +13069,9 @@ const ZAPIER_WEB_TEXTS = {
|
|
|
13069
13069
|
trialEndsRegExp: "Trial ends on",
|
|
13070
13070
|
testCurrentlyInQueue: "Test currently in queue",
|
|
13071
13071
|
welcomeText: (zapierLoginEmail) => `Welcome back ${zapierLoginEmail}`,
|
|
13072
|
-
|
|
13072
|
+
connectStagingApp: (appName) => `Connect ${appName} Staging`,
|
|
13073
|
+
zapierWorkflowTriggered: "Zapier Workflow Triggered",
|
|
13074
|
+
confirmPublishing: "Confirm Publishing",
|
|
13073
13075
|
};
|
|
13074
13076
|
const TOASTR_MESSAGES = {
|
|
13075
13077
|
zapierApiKeyGenerated: "Zapier API key is generated successfully!",
|
|
@@ -15641,6 +15643,7 @@ const ZAPIER_SELECTORS = {
|
|
|
15641
15643
|
universalSidebar: "[data-testid='universalSidebar']",
|
|
15642
15644
|
sidebarFooter: "css=[class$=InAppSidebarFooter__footerWrapper]",
|
|
15643
15645
|
contextualSideBar: "[data-testid='contextual-sidebar']",
|
|
15646
|
+
iconContainer: "[data-testid='iconContainer']",
|
|
15644
15647
|
};
|
|
15645
15648
|
|
|
15646
15649
|
class ZapierPage extends IntegrationBase {
|
|
@@ -15674,7 +15677,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
15674
15677
|
});
|
|
15675
15678
|
await this.zapierWebPage.close();
|
|
15676
15679
|
};
|
|
15677
|
-
this.reconnectAccountAndPublish = async (zapierApiKey) => {
|
|
15680
|
+
this.reconnectAccountAndPublish = async (zapierApiKey, appName) => {
|
|
15678
15681
|
var _a;
|
|
15679
15682
|
await this.zapierWebPage.goto(THIRD_PARTY_ROUTES.zapier.zapEditor(process.env.ZAP_ID));
|
|
15680
15683
|
await this.zapierWebPage
|
|
@@ -15688,7 +15691,9 @@ class ZapierPage extends IntegrationBase {
|
|
|
15688
15691
|
}
|
|
15689
15692
|
const signInPagePromise = this.zapierWebPage.waitForEvent("popup");
|
|
15690
15693
|
await this.zapierWebPage
|
|
15691
|
-
.getByRole("button", {
|
|
15694
|
+
.getByRole("button", {
|
|
15695
|
+
name: ZAPIER_WEB_TEXTS.connectStagingApp(appName),
|
|
15696
|
+
})
|
|
15692
15697
|
.click();
|
|
15693
15698
|
const signInPage = await signInPagePromise;
|
|
15694
15699
|
await signInPage.waitForLoadState();
|
|
@@ -15728,9 +15733,10 @@ class ZapierPage extends IntegrationBase {
|
|
|
15728
15733
|
.getByRole("button", {
|
|
15729
15734
|
name: ZAPIER_WEB_TEXTS.continueWithSelectedRecord,
|
|
15730
15735
|
})
|
|
15731
|
-
.click({ timeout:
|
|
15732
|
-
await this.continueButton.click();
|
|
15733
|
-
await this.
|
|
15736
|
+
.click({ timeout: 30000 });
|
|
15737
|
+
await this.continueButton.click({ timeout: 20000 });
|
|
15738
|
+
await expect(this.zapierWebPage.getByText(ZAPIER_WEB_TEXTS.zapierWorkflowTriggered)).toBeVisible();
|
|
15739
|
+
await this.continueButton.click({ timeout: 20000 });
|
|
15734
15740
|
await this.zapierWebPage
|
|
15735
15741
|
.getByLabel(ZAPIER_WEB_TEXTS.publish, { exact: true })
|
|
15736
15742
|
.or(this.zapierWebPage
|
|
@@ -15738,11 +15744,16 @@ class ZapierPage extends IntegrationBase {
|
|
|
15738
15744
|
.getByRole("button", { name: ZAPIER_WEB_TEXTS.publish }))
|
|
15739
15745
|
.click({ timeout: 20000 });
|
|
15740
15746
|
await this.zapierWebPage
|
|
15747
|
+
.getByRole("button", { name: ZAPIER_WEB_TEXTS.confirmPublishing })
|
|
15748
|
+
.or(this.zapierWebPage
|
|
15741
15749
|
.locator(ZAPIER_SELECTORS.modal)
|
|
15742
15750
|
.getByLabel(ZAPIER_WEB_TEXTS.publish)
|
|
15743
15751
|
.or(this.zapierWebPage
|
|
15744
15752
|
.locator(ZAPIER_SELECTORS.modal)
|
|
15745
|
-
.getByRole("button", {
|
|
15753
|
+
.getByRole("button", {
|
|
15754
|
+
name: ZAPIER_WEB_TEXTS.publish,
|
|
15755
|
+
exact: true,
|
|
15756
|
+
})))
|
|
15746
15757
|
.click();
|
|
15747
15758
|
await this.zapierWebPage
|
|
15748
15759
|
.getByLabel(ZAPIER_WEB_TEXTS.publishingZapHeading)
|