@bigbinary/neeto-playwright-commons 1.22.8 → 1.22.9

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
@@ -4138,7 +4138,6 @@ class CustomCommands {
4138
4138
  await customPageContext.evaluate(button => {
4139
4139
  button.dispatchEvent(new Event("click", { bubbles: true }));
4140
4140
  }, buttonHandle);
4141
- // eslint-disable-next-line playwright/no-standalone-expect
4142
4141
  await test$1.expect(toastrCloseButton).toBeHidden();
4143
4142
  }
4144
4143
  };
@@ -188722,25 +188721,15 @@ class EmbedBase {
188722
188721
  await this.page.locator(EMBED_SELECTORS.embedSelector(embedType)).click();
188723
188722
  await this.neetoPlaywrightUtilities.waitForPageLoad();
188724
188723
  };
188725
- this.verifyInlineCustomization = async ({ headingTestId,
188726
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
188727
- inlineEmbedInterceptParams, customizationOptions, }) => {
188728
- const embedHeightPercentage = `${customizationOptions.embedHeight}%`;
188729
- const embedWidthPercentage = `${customizationOptions.embedWidth}%`;
188730
- await this.page
188731
- .getByTestId(EMBED_SELECTORS.inlineHeightInput)
188732
- .fill(customizationOptions.embedHeight);
188733
- await this.page
188734
- .getByTestId(EMBED_SELECTORS.inlineWidthInput)
188735
- .fill(customizationOptions.embedWidth);
188724
+ this.verifyInlineCustomization = async ({ headingTestId, customizationOptions, }) => {
188725
+ const embedSize = { height: "100%", width: "100%" };
188736
188726
  await this.page
188737
188727
  .getByTestId(EMBED_SELECTORS.inlineElementIdInput)
188738
188728
  .fill(customizationOptions.embedDivContainerId);
188739
188729
  await this.expectMultipleTextsInCodeblock([
188740
188730
  RegExp(`<div .* id="${customizationOptions.embedDivContainerId}">`),
188741
188731
  `elementSelector: "#${customizationOptions.embedDivContainerId}"`,
188742
- `height: "${embedHeightPercentage}"`,
188743
- `width: "${embedWidthPercentage}"`,
188732
+ `styles: "height: ${embedSize.height}; width: ${embedSize.width};"`,
188744
188733
  ]);
188745
188734
  (await this.previewTab.isVisible()) && (await this.previewTab.click());
188746
188735
  const iframe = this.page.locator("iframe");
@@ -188750,10 +188739,8 @@ class EmbedBase {
188750
188739
  node.getAttribute("height"),
188751
188740
  node.getAttribute("width"),
188752
188741
  ]);
188753
- // eslint-disable-next-line playwright/no-standalone-expect
188754
- test$1.expect(iframeHeight).toStrictEqual(embedHeightPercentage);
188755
- // eslint-disable-next-line playwright/no-standalone-expect
188756
- test$1.expect(iframeWidth).toStrictEqual(embedWidthPercentage);
188742
+ test$1.expect(iframeHeight).toStrictEqual(embedSize.height);
188743
+ test$1.expect(iframeWidth).toStrictEqual(embedSize.width);
188757
188744
  await this.backToEmbedSelection();
188758
188745
  };
188759
188746
  this.backToEmbedSelection = () => this.page.getByTestId(EMBED_SELECTORS.backToEmbedSelectionButton).click();
@@ -191766,17 +191753,20 @@ class ZapierPage extends IntegrationBase {
191766
191753
  .locator(ZAPIER_SELECTORS.zapTriggerStep(process.env.ZAP_ID))
191767
191754
  .getByLabel(ZAPIER_WEB_TEXTS.editStep)
191768
191755
  .click();
191769
- if (await this.zapierWebPage.locator(ZAPIER_SELECTORS.modal).isVisible()) {
191770
- await this.zapierWebPage
191756
+ const modal = this.zapierWebPage.locator(ZAPIER_SELECTORS.modal);
191757
+ const connectStagingAppBtn = this.zapierWebPage.getByRole("button", {
191758
+ name: ZAPIER_WEB_TEXTS.connectStagingApp(appName),
191759
+ });
191760
+ await this.zapierWebPage.waitForLoadState();
191761
+ await test$1.expect(modal.or(connectStagingAppBtn)).toBeVisible({
191762
+ timeout: 20000,
191763
+ });
191764
+ (await modal.isVisible()) &&
191765
+ (await this.zapierWebPage
191771
191766
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.editExistingDraft })
191772
- .click();
191773
- }
191767
+ .click());
191774
191768
  const signInPagePromise = this.zapierWebPage.waitForEvent("popup");
191775
- await this.zapierWebPage
191776
- .getByRole("button", {
191777
- name: ZAPIER_WEB_TEXTS.connectStagingApp(appName),
191778
- })
191779
- .click();
191769
+ await connectStagingAppBtn.click();
191780
191770
  const signInPage = await signInPagePromise;
191781
191771
  await signInPage.waitForLoadState();
191782
191772
  await test$1.expect(signInPage.getByRole("heading", { name: ZAPIER_WEB_TEXTS.loading })).toBeHidden({ timeout: 10000 });
@@ -191860,7 +191850,6 @@ class ZapierPage extends IntegrationBase {
191860
191850
  .click();
191861
191851
  }).toPass({ timeout: 40000 });
191862
191852
  }
191863
- // eslint-disable-next-line playwright/no-standalone-expect
191864
191853
  await test$1.expect(connectionLocator).toHaveCount(0, {
191865
191854
  timeout: 10000,
191866
191855
  });
@@ -191996,7 +191985,6 @@ class Member {
191996
191985
  .toBe(200);
191997
191986
  const responseBodyBuffer = await (response === null || response === void 0 ? void 0 : response.body());
191998
191987
  const { job_id: jobId } = JSON.parse(String(responseBodyBuffer));
191999
- // eslint-disable-next-line playwright/no-standalone-expect
192000
191988
  await test$1.expect
192001
191989
  .poll(async () => {
192002
191990
  const jobResponse = await this.memberApis.jobStatus(jobId);
@@ -192103,7 +192091,6 @@ class EditorPage {
192103
192091
  return this.cleanString(dataCy);
192104
192092
  }));
192105
192093
  await this.moreMenuSelector.click();
192106
- // eslint-disable-next-line playwright/no-standalone-expect
192107
192094
  await test$1.expect(dropdownContainer).toBeHidden();
192108
192095
  return moreMenuButtonLocators;
192109
192096
  };
@@ -192700,15 +192687,12 @@ class TeamMembers {
192700
192687
  .click();
192701
192688
  await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
192702
192689
  }
192703
- // eslint-disable-next-line playwright/no-standalone-expect
192704
192690
  await test$1.expect(async () => {
192705
192691
  const submitButton = this.page.getByTestId(MEMBER_SELECTORS.submitButton);
192706
192692
  await submitButton.click();
192707
- // eslint-disable-next-line playwright/no-standalone-expect
192708
192693
  await test$1.expect(submitButton.locator(COMMON_SELECTORS.buttonSpinner)).toBeHidden({
192709
192694
  timeout: 15000,
192710
192695
  });
192711
- // eslint-disable-next-line playwright/no-standalone-expect
192712
192696
  await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
192713
192697
  }).toPass({ timeout: 40000 });
192714
192698
  await this.neetoPlaywrightUtilities.waitForPageLoad();
@@ -193184,17 +193168,14 @@ class AuditLogsPage {
193184
193168
  .getByTestId(COMMON_SELECTORS.paneBody)
193185
193169
  .getByRole("row");
193186
193170
  firstName &&
193187
- // eslint-disable-next-line playwright/no-standalone-expect
193188
193171
  (await test$1.expect(rowInPane
193189
193172
  .filter({ hasText: this.t("neetoTeamMembers.labels.firstName") })
193190
193173
  .getByText(firstName)).toBeVisible());
193191
193174
  lastName &&
193192
- // eslint-disable-next-line playwright/no-standalone-expect
193193
193175
  (await test$1.expect(rowInPane
193194
193176
  .filter({ hasText: this.t("neetoTeamMembers.labels.lastName") })
193195
193177
  .getByText(lastName)).toBeVisible());
193196
193178
  roleName &&
193197
- // eslint-disable-next-line playwright/no-standalone-expect
193198
193179
  (await test$1.expect(rowInPane
193199
193180
  .filter({ hasText: AUDIT_LOGS_TEXTS.organizationRole })
193200
193181
  .getByText(roleName)).toBeVisible());