@bigbinary/neeto-playwright-commons 1.13.9 → 1.13.11

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`;
@@ -618,6 +619,7 @@ const TAB_SELECTORS = {
618
619
  shareTab: "share-tab",
619
620
  submissionsTab: "submissions-tab",
620
621
  paymentsTab: "payments-tab",
622
+ settingsTab: "settings-tab",
621
623
  };
622
624
 
623
625
  const TAGS_SELECTORS = {
@@ -21178,7 +21180,7 @@ const i18nFixture = {
21178
21180
  class ThankYouPage {
21179
21181
  constructor(page, neetoPlaywrightUtilities) {
21180
21182
  this.navigateToThankYouPage = async () => {
21181
- await this.page.getByTestId(TAB_SELECTORS.configureTab).click();
21183
+ await this.page.getByTestId(TAB_SELECTORS.settingsTab).click();
21182
21184
  const fetchConfiguration = this.neetoPlaywrightUtilities.interceptMultipleResponses({
21183
21185
  responseUrl: ROUTES.neetoThankYou,
21184
21186
  });
@@ -23495,10 +23497,14 @@ class IntegrationBase {
23495
23497
  await test$1.expect(this.page.getByRole("heading", { name: header })).toBeVisible();
23496
23498
  };
23497
23499
  this.clickOnIntegrationCard = async () => {
23498
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.spinner)).toHaveCount(0);
23500
+ await this.neetoPlaywrightUtilities.waitForPageLoad({
23501
+ visibilityTimeout: this.pageloaderTimeout,
23502
+ });
23499
23503
  await this.integrationCard.scrollIntoViewIfNeeded();
23500
23504
  await this.integrationCard.click();
23501
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden({ timeout: this.pageloaderTimeout });
23505
+ await this.neetoPlaywrightUtilities.waitForPageLoad({
23506
+ visibilityTimeout: this.pageloaderTimeout,
23507
+ });
23502
23508
  };
23503
23509
  this.gotoIntegrationIndex = async () => {
23504
23510
  if (neetoCist.isNotEmpty(this.integrationRouteIndex)) {
@@ -23703,7 +23709,7 @@ class SlackPage extends IntegrationBase {
23703
23709
  const allowButton = this.page.getByRole("button", {
23704
23710
  name: SLACK_WEB_TEXTS.allow,
23705
23711
  });
23706
- await test$1.expect(allowButton).toBeEnabled({ timeout: 20000 });
23712
+ await test$1.expect(allowButton).toBeEnabled({ timeout: 30000 });
23707
23713
  const currentWorkspace = (await this.page
23708
23714
  .locator(SLACK_SELECTORS.teamPicketButtonContent)
23709
23715
  .textContent()) || "";
@@ -24000,7 +24006,9 @@ class ZapierPage extends IntegrationBase {
24000
24006
  })
24001
24007
  .click();
24002
24008
  await this.continueButton.click({ timeout: 30000 });
24003
- await test$1.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.spinner)).toBeHidden({ timeout: 10000 });
24009
+ await test$1.expect(this.zapierWebPage
24010
+ .getByLabel(ZAPIER_WEB_TEXTS.testTrigger)
24011
+ .locator(ZAPIER_SELECTORS.spinner)).toBeHidden({ timeout: 10000 });
24004
24012
  await test$1.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.skeletonBlock)).toHaveCount(0, { timeout: 10000 });
24005
24013
  const testTriggerButton = this.zapierWebPage.getByRole("button", {
24006
24014
  name: ZAPIER_WEB_TEXTS.testTrigger,
@@ -24028,11 +24036,9 @@ class ZapierPage extends IntegrationBase {
24028
24036
  await this.zapierWebPage
24029
24037
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.confirmPublishing })
24030
24038
  .or(this.zapierWebPage
24031
- .locator(ZAPIER_SELECTORS.modal)
24039
+ .getByRole("dialog")
24032
24040
  .getByLabel(ZAPIER_WEB_TEXTS.publish)
24033
- .or(this.zapierWebPage
24034
- .locator(ZAPIER_SELECTORS.modal)
24035
- .getByRole("button", {
24041
+ .or(this.zapierWebPage.getByRole("dialog").getByRole("button", {
24036
24042
  name: ZAPIER_WEB_TEXTS.publish,
24037
24043
  exact: true,
24038
24044
  })))