@bigbinary/neeto-playwright-commons 1.22.1 → 1.22.3
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 +11 -10
- package/index.cjs.js.map +1 -1
- package/index.d.ts +28 -3
- package/index.js +11 -11
- package/index.js.map +1 -1
- package/package.json +1 -2
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
|
|
191773
|
-
|
|
191774
|
-
|
|
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 =
|
|
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
|
-
|
|
191806
|
-
.getByRole("button", {
|
|
191805
|
+
const continueWithRecordBtn = this.zapierWebPage.getByRole("button", {
|
|
191807
191806
|
name: ZAPIER_WEB_TEXTS.continueWithSelectedRecord,
|
|
191808
|
-
})
|
|
191809
|
-
|
|
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 });
|
|
@@ -193220,7 +193220,7 @@ class CustomDomainPage {
|
|
|
193220
193220
|
await test$1.expect(async () => {
|
|
193221
193221
|
await validateButton.click();
|
|
193222
193222
|
await this.neetoPlaywrightUtilities.verifyToast({
|
|
193223
|
-
timeout:
|
|
193223
|
+
timeout: 20000,
|
|
193224
193224
|
message: this.t("neetoCustomDomains.validation.successMessage"),
|
|
193225
193225
|
});
|
|
193226
193226
|
}).toPass({ timeout: 60000 });
|
|
@@ -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;
|