@bigbinary/neeto-playwright-commons 1.13.9 → 1.13.10

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
@@ -347,6 +347,7 @@ const THANK_YOU_SELECTORS = {
347
347
  thankYouPageResubmitLink: "thank-you-page-resubmit-link",
348
348
  linkInputField: "link-input-field",
349
349
  previewImage: "preview-image",
350
+ thankYouMessageEditor: "thank-you-message-editor",
350
351
  };
351
352
 
352
353
  const optionSelector = (option) => `neeto-editor-fixed-menu-${option}-option`;
@@ -23495,10 +23496,14 @@ class IntegrationBase {
23495
23496
  await test$1.expect(this.page.getByRole("heading", { name: header })).toBeVisible();
23496
23497
  };
23497
23498
  this.clickOnIntegrationCard = async () => {
23498
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.spinner)).toHaveCount(0);
23499
+ await this.neetoPlaywrightUtilities.waitForPageLoad({
23500
+ visibilityTimeout: this.pageloaderTimeout,
23501
+ });
23499
23502
  await this.integrationCard.scrollIntoViewIfNeeded();
23500
23503
  await this.integrationCard.click();
23501
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden({ timeout: this.pageloaderTimeout });
23504
+ await this.neetoPlaywrightUtilities.waitForPageLoad({
23505
+ visibilityTimeout: this.pageloaderTimeout,
23506
+ });
23502
23507
  };
23503
23508
  this.gotoIntegrationIndex = async () => {
23504
23509
  if (neetoCist.isNotEmpty(this.integrationRouteIndex)) {
@@ -24000,7 +24005,9 @@ class ZapierPage extends IntegrationBase {
24000
24005
  })
24001
24006
  .click();
24002
24007
  await this.continueButton.click({ timeout: 30000 });
24003
- await test$1.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.spinner)).toBeHidden({ timeout: 10000 });
24008
+ await test$1.expect(this.zapierWebPage
24009
+ .getByLabel(ZAPIER_WEB_TEXTS.testTrigger)
24010
+ .locator(ZAPIER_SELECTORS.spinner)).toBeHidden({ timeout: 10000 });
24004
24011
  await test$1.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.skeletonBlock)).toHaveCount(0, { timeout: 10000 });
24005
24012
  const testTriggerButton = this.zapierWebPage.getByRole("button", {
24006
24013
  name: ZAPIER_WEB_TEXTS.testTrigger,
@@ -24028,11 +24035,9 @@ class ZapierPage extends IntegrationBase {
24028
24035
  await this.zapierWebPage
24029
24036
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.confirmPublishing })
24030
24037
  .or(this.zapierWebPage
24031
- .locator(ZAPIER_SELECTORS.modal)
24038
+ .getByRole("dialog")
24032
24039
  .getByLabel(ZAPIER_WEB_TEXTS.publish)
24033
- .or(this.zapierWebPage
24034
- .locator(ZAPIER_SELECTORS.modal)
24035
- .getByRole("button", {
24040
+ .or(this.zapierWebPage.getByRole("dialog").getByRole("button", {
24036
24041
  name: ZAPIER_WEB_TEXTS.publish,
24037
24042
  exact: true,
24038
24043
  })))