@bigbinary/neeto-playwright-commons 1.22.1 → 1.22.2

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
@@ -3519,6 +3519,7 @@ const getListCount = async ({ page, countSelector, }) => {
3519
3519
  };
3520
3520
  const getGlobalUserProps = async (page) => (await page.evaluate(() => window.globalProps.user));
3521
3521
  const getClipboardContent = (page) => page.evaluate(() => navigator.clipboard.readText());
3522
+ const getFullUrl = (path) => shouldSkipCustomDomainSetup() ? path : `${process.env.BASE_URL}${path}`;
3522
3523
  const globalShortcuts = (t) => [
3523
3524
  {
3524
3525
  description: t("neetoMolecules.keyboardShortcuts.global.openKeyboardShortcutsPane"),
@@ -191769,12 +191770,11 @@ class ZapierPage extends IntegrationBase {
191769
191770
  await test$1.expect(signInPage.getByRole("heading", { name: ZAPIER_WEB_TEXTS.loading })).toBeHidden({ timeout: 10000 });
191770
191771
  // The zapier connect page have two custom fm-prettytext boxes
191771
191772
  // (not an input/textarea) without aria-label or data-cy
191772
- const subdomainBox = signInPage
191773
- .locator(ZAPIER_SELECTORS.fmPrettytext)
191774
- // eslint-disable-next-line playwright/no-nth-methods
191775
- .nth(0);
191773
+ const prettyTextBox = signInPage.locator(ZAPIER_SELECTORS.fmPrettytext);
191774
+ // eslint-disable-next-line playwright/no-nth-methods
191775
+ const subdomainBox = prettyTextBox.nth(0);
191776
191776
  // eslint-disable-next-line playwright/no-nth-methods
191777
- const apiKeyBox = signInPage.locator(ZAPIER_SELECTORS.fmPrettytext).nth(1);
191777
+ const apiKeyBox = prettyTextBox.nth(1);
191778
191778
  await subdomainBox.click();
191779
191779
  await subdomainBox.pressSequentially((_a = getGlobalUserState()) === null || _a === void 0 ? void 0 : _a.subdomainName, {
191780
191780
  delay: 100,
@@ -191802,11 +191802,11 @@ class ZapierPage extends IntegrationBase {
191802
191802
  await test$1.expect(this.zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.statusLabel, {
191803
191803
  exact: true,
191804
191804
  })).toBeVisible({ timeout: 10000 });
191805
- await this.zapierWebPage
191806
- .getByRole("button", {
191805
+ const continueWithRecordBtn = this.zapierWebPage.getByRole("button", {
191807
191806
  name: ZAPIER_WEB_TEXTS.continueWithSelectedRecord,
191808
- })
191809
- .click({ timeout: 30000 });
191807
+ });
191808
+ await continueWithRecordBtn.click({ timeout: 30000 });
191809
+ await test$1.expect(continueWithRecordBtn).toBeHidden({ timeout: 15000 });
191810
191810
  await this.continueButton.click({ timeout: 20000 });
191811
191811
  await test$1.expect(this.zapierWebPage.getByText(ZAPIER_WEB_TEXTS.zapierWorkflowTriggered)).toBeVisible();
191812
191812
  await this.continueButton.click({ timeout: 20000 });
@@ -195636,6 +195636,7 @@ exports.generateRandomFile = generateRandomFile;
195636
195636
  exports.generateStagingData = generateStagingData;
195637
195637
  exports.getByDataQA = getByDataQA;
195638
195638
  exports.getClipboardContent = getClipboardContent;
195639
+ exports.getFullUrl = getFullUrl;
195639
195640
  exports.getGlobalUserProps = getGlobalUserProps;
195640
195641
  exports.getGlobalUserState = getGlobalUserState;
195641
195642
  exports.getImagePathAndName = getImagePathAndName;