@bigbinary/neeto-playwright-commons 1.11.7 → 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 CHANGED
@@ -12936,6 +12936,7 @@ const ZAPIER_WEB_TEXTS = {
12936
12936
  trialEndsRegExp: "Trial ends on",
12937
12937
  testCurrentlyInQueue: "Test currently in queue",
12938
12938
  welcomeText: (zapierLoginEmail) => `Welcome back ${zapierLoginEmail}`,
12939
+ connectNeetoFormStaging: "Connect neetoForm Staging",
12939
12940
  };
12940
12941
  const TOASTR_MESSAGES = {
12941
12942
  zapierApiKeyGenerated: "Zapier API key is generated successfully!",
@@ -13645,13 +13646,9 @@ class ZapierPage extends IntegrationBase {
13645
13646
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.editExistingDraft })
13646
13647
  .click();
13647
13648
  }
13648
- await this.zapierWebPage
13649
- .getByRole("link", { name: ZAPIER_WEB_TEXTS.account })
13650
- .or(this.zapierWebPage.locator(ZAPIER_SELECTORS.zapAccountSubstep))
13651
- .click();
13652
13649
  const signInPagePromise = this.zapierWebPage.waitForEvent("popup");
13653
13650
  await this.zapierWebPage
13654
- .getByLabel(RegExp(ZAPIER_WEB_TEXTS.signInTo))
13651
+ .getByRole("button", { name: ZAPIER_WEB_TEXTS.connectNeetoFormStaging })
13655
13652
  .click();
13656
13653
  const signInPage = await signInPagePromise;
13657
13654
  await signInPage.waitForLoadState();
@@ -13695,12 +13692,11 @@ class ZapierPage extends IntegrationBase {
13695
13692
  await this.continueButton.click();
13696
13693
  await this.continueButton.click();
13697
13694
  await this.zapierWebPage
13698
- .locator(ZAPIER_SELECTORS.contextualSideBar)
13699
- .getByLabel(ZAPIER_WEB_TEXTS.publish)
13695
+ .getByLabel(ZAPIER_WEB_TEXTS.publish, { exact: true })
13700
13696
  .or(this.zapierWebPage
13701
13697
  .locator(ZAPIER_SELECTORS.zapOpenSubstepContainer)
13702
13698
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.publish }))
13703
- .click();
13699
+ .click({ timeout: 20000 });
13704
13700
  await this.zapierWebPage
13705
13701
  .locator(ZAPIER_SELECTORS.modal)
13706
13702
  .getByLabel(ZAPIER_WEB_TEXTS.publish)
@@ -13741,7 +13737,7 @@ class ZapierPage extends IntegrationBase {
13741
13737
  timeout: 10000,
13742
13738
  });
13743
13739
  };
13744
- this.verifyZapIsTriggered = ({ productName, submittedEmail, zapTriggeredAfter, }) => this.mailosaur.messages.get(process.env.INTEGRATION_MAILOSAUR_SERVER_ID, { sentTo: ZAPIER_TEST_EMAIL(productName), body: submittedEmail }, { timeout: 2 * 60000, receivedAfter: zapTriggeredAfter });
13740
+ 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 });
13745
13741
  this.skipIfTaskLimitIsExhausted = async () => {
13746
13742
  var _a;
13747
13743
  // Zapier provides 100 free task limit for free account; skip test if it's exhausted