@bigbinary/neeto-playwright-commons 1.22.0 → 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 +15 -12
- package/index.cjs.js.map +1 -1
- package/index.d.ts +9 -8
- package/index.js +15 -13
- 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,
|
|
@@ -191797,16 +191797,16 @@ class ZapierPage extends IntegrationBase {
|
|
|
191797
191797
|
await test$1.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.spinner)).toBeHidden({
|
|
191798
191798
|
timeout: 25000,
|
|
191799
191799
|
});
|
|
191800
|
-
|
|
191800
|
+
await testTriggerButton.click();
|
|
191801
191801
|
await test$1.expect(this.zapierWebPage.getByText(ZAPIER_WEB_TEXTS.testCurrentlyInQueue)).toBeHidden({ timeout: 20000 });
|
|
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 });
|
|
@@ -193113,8 +193113,10 @@ class ApiKeysPage {
|
|
|
193113
193113
|
.getByTestId(COMMON_SELECTORS.paneBody)
|
|
193114
193114
|
.getByTestId(ADMIN_PANEL_SELECTORS.expiryDateInput);
|
|
193115
193115
|
await expiryDateInput.click();
|
|
193116
|
-
await
|
|
193117
|
-
await expiryDateInput.
|
|
193116
|
+
await test$1.expect(this.page.getByLabel(DATE_TEXTS.nextYear, { exact: true })).toBeVisible();
|
|
193117
|
+
await expiryDateInput.pressSequentially(expiryDate, { delay: 250 });
|
|
193118
|
+
await this.page.keyboard.press("Enter");
|
|
193119
|
+
await test$1.expect(this.page.getByLabel(DATE_TEXTS.nextYear, { exact: true })).toBeHidden();
|
|
193118
193120
|
}
|
|
193119
193121
|
await this.page.getByTestId(COMMON_SELECTORS.saveChangesButton).click();
|
|
193120
193122
|
await this.neetoPlaywrightUtilities.verifyToast();
|
|
@@ -195634,6 +195636,7 @@ exports.generateRandomFile = generateRandomFile;
|
|
|
195634
195636
|
exports.generateStagingData = generateStagingData;
|
|
195635
195637
|
exports.getByDataQA = getByDataQA;
|
|
195636
195638
|
exports.getClipboardContent = getClipboardContent;
|
|
195639
|
+
exports.getFullUrl = getFullUrl;
|
|
195637
195640
|
exports.getGlobalUserProps = getGlobalUserProps;
|
|
195638
195641
|
exports.getGlobalUserState = getGlobalUserState;
|
|
195639
195642
|
exports.getImagePathAndName = getImagePathAndName;
|