@bigbinary/neeto-playwright-commons 1.22.7 → 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 +28 -37
- package/index.cjs.js.map +1 -1
- package/index.d.ts +8 -10
- package/index.js +28 -37
- package/index.js.map +1 -1
- package/package.json +1 -1
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
|
};
|
|
@@ -48016,6 +48015,7 @@ class FastmailApi {
|
|
|
48016
48015
|
method: "post",
|
|
48017
48016
|
url: "https://api.fastmail.com/jmap/api/",
|
|
48018
48017
|
headers: this.headers,
|
|
48018
|
+
timeout: 2000,
|
|
48019
48019
|
data: {
|
|
48020
48020
|
using: ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail"],
|
|
48021
48021
|
methodCalls: [[method, { accountId: this.accountId, ...body }, "0"]],
|
|
@@ -48077,7 +48077,16 @@ class MailerUtils {
|
|
|
48077
48077
|
limit,
|
|
48078
48078
|
position,
|
|
48079
48079
|
};
|
|
48080
|
-
|
|
48080
|
+
let ids = [], total = 0;
|
|
48081
|
+
try {
|
|
48082
|
+
({
|
|
48083
|
+
methodResponses: [[, { ids, total }]],
|
|
48084
|
+
} = await this.fastmailApi.apiRequest("Email/query", body));
|
|
48085
|
+
}
|
|
48086
|
+
catch (_a) {
|
|
48087
|
+
ids = [];
|
|
48088
|
+
total = 0;
|
|
48089
|
+
}
|
|
48081
48090
|
return { ids, total };
|
|
48082
48091
|
};
|
|
48083
48092
|
this.getEmails = async (ids) => {
|
|
@@ -188712,25 +188721,15 @@ class EmbedBase {
|
|
|
188712
188721
|
await this.page.locator(EMBED_SELECTORS.embedSelector(embedType)).click();
|
|
188713
188722
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
188714
188723
|
};
|
|
188715
|
-
this.verifyInlineCustomization = async ({ headingTestId,
|
|
188716
|
-
|
|
188717
|
-
inlineEmbedInterceptParams, customizationOptions, }) => {
|
|
188718
|
-
const embedHeightPercentage = `${customizationOptions.embedHeight}%`;
|
|
188719
|
-
const embedWidthPercentage = `${customizationOptions.embedWidth}%`;
|
|
188720
|
-
await this.page
|
|
188721
|
-
.getByTestId(EMBED_SELECTORS.inlineHeightInput)
|
|
188722
|
-
.fill(customizationOptions.embedHeight);
|
|
188723
|
-
await this.page
|
|
188724
|
-
.getByTestId(EMBED_SELECTORS.inlineWidthInput)
|
|
188725
|
-
.fill(customizationOptions.embedWidth);
|
|
188724
|
+
this.verifyInlineCustomization = async ({ headingTestId, customizationOptions, }) => {
|
|
188725
|
+
const embedSize = { height: "100%", width: "100%" };
|
|
188726
188726
|
await this.page
|
|
188727
188727
|
.getByTestId(EMBED_SELECTORS.inlineElementIdInput)
|
|
188728
188728
|
.fill(customizationOptions.embedDivContainerId);
|
|
188729
188729
|
await this.expectMultipleTextsInCodeblock([
|
|
188730
188730
|
RegExp(`<div .* id="${customizationOptions.embedDivContainerId}">`),
|
|
188731
188731
|
`elementSelector: "#${customizationOptions.embedDivContainerId}"`,
|
|
188732
|
-
`height:
|
|
188733
|
-
`width: "${embedWidthPercentage}"`,
|
|
188732
|
+
`styles: "height: ${embedSize.height}; width: ${embedSize.width};"`,
|
|
188734
188733
|
]);
|
|
188735
188734
|
(await this.previewTab.isVisible()) && (await this.previewTab.click());
|
|
188736
188735
|
const iframe = this.page.locator("iframe");
|
|
@@ -188740,10 +188739,8 @@ class EmbedBase {
|
|
|
188740
188739
|
node.getAttribute("height"),
|
|
188741
188740
|
node.getAttribute("width"),
|
|
188742
188741
|
]);
|
|
188743
|
-
|
|
188744
|
-
test$1.expect(
|
|
188745
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
188746
|
-
test$1.expect(iframeWidth).toStrictEqual(embedWidthPercentage);
|
|
188742
|
+
test$1.expect(iframeHeight).toStrictEqual(embedSize.height);
|
|
188743
|
+
test$1.expect(iframeWidth).toStrictEqual(embedSize.width);
|
|
188747
188744
|
await this.backToEmbedSelection();
|
|
188748
188745
|
};
|
|
188749
188746
|
this.backToEmbedSelection = () => this.page.getByTestId(EMBED_SELECTORS.backToEmbedSelectionButton).click();
|
|
@@ -191756,17 +191753,20 @@ class ZapierPage extends IntegrationBase {
|
|
|
191756
191753
|
.locator(ZAPIER_SELECTORS.zapTriggerStep(process.env.ZAP_ID))
|
|
191757
191754
|
.getByLabel(ZAPIER_WEB_TEXTS.editStep)
|
|
191758
191755
|
.click();
|
|
191759
|
-
|
|
191760
|
-
|
|
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
|
|
191761
191766
|
.getByRole("button", { name: ZAPIER_WEB_TEXTS.editExistingDraft })
|
|
191762
|
-
.click();
|
|
191763
|
-
}
|
|
191767
|
+
.click());
|
|
191764
191768
|
const signInPagePromise = this.zapierWebPage.waitForEvent("popup");
|
|
191765
|
-
await
|
|
191766
|
-
.getByRole("button", {
|
|
191767
|
-
name: ZAPIER_WEB_TEXTS.connectStagingApp(appName),
|
|
191768
|
-
})
|
|
191769
|
-
.click();
|
|
191769
|
+
await connectStagingAppBtn.click();
|
|
191770
191770
|
const signInPage = await signInPagePromise;
|
|
191771
191771
|
await signInPage.waitForLoadState();
|
|
191772
191772
|
await test$1.expect(signInPage.getByRole("heading", { name: ZAPIER_WEB_TEXTS.loading })).toBeHidden({ timeout: 10000 });
|
|
@@ -191850,7 +191850,6 @@ class ZapierPage extends IntegrationBase {
|
|
|
191850
191850
|
.click();
|
|
191851
191851
|
}).toPass({ timeout: 40000 });
|
|
191852
191852
|
}
|
|
191853
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
191854
191853
|
await test$1.expect(connectionLocator).toHaveCount(0, {
|
|
191855
191854
|
timeout: 10000,
|
|
191856
191855
|
});
|
|
@@ -191986,7 +191985,6 @@ class Member {
|
|
|
191986
191985
|
.toBe(200);
|
|
191987
191986
|
const responseBodyBuffer = await (response === null || response === void 0 ? void 0 : response.body());
|
|
191988
191987
|
const { job_id: jobId } = JSON.parse(String(responseBodyBuffer));
|
|
191989
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
191990
191988
|
await test$1.expect
|
|
191991
191989
|
.poll(async () => {
|
|
191992
191990
|
const jobResponse = await this.memberApis.jobStatus(jobId);
|
|
@@ -192093,7 +192091,6 @@ class EditorPage {
|
|
|
192093
192091
|
return this.cleanString(dataCy);
|
|
192094
192092
|
}));
|
|
192095
192093
|
await this.moreMenuSelector.click();
|
|
192096
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
192097
192094
|
await test$1.expect(dropdownContainer).toBeHidden();
|
|
192098
192095
|
return moreMenuButtonLocators;
|
|
192099
192096
|
};
|
|
@@ -192690,15 +192687,12 @@ class TeamMembers {
|
|
|
192690
192687
|
.click();
|
|
192691
192688
|
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
192692
192689
|
}
|
|
192693
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
192694
192690
|
await test$1.expect(async () => {
|
|
192695
192691
|
const submitButton = this.page.getByTestId(MEMBER_SELECTORS.submitButton);
|
|
192696
192692
|
await submitButton.click();
|
|
192697
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
192698
192693
|
await test$1.expect(submitButton.locator(COMMON_SELECTORS.buttonSpinner)).toBeHidden({
|
|
192699
192694
|
timeout: 15000,
|
|
192700
192695
|
});
|
|
192701
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
192702
192696
|
await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
|
|
192703
192697
|
}).toPass({ timeout: 40000 });
|
|
192704
192698
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
@@ -193174,17 +193168,14 @@ class AuditLogsPage {
|
|
|
193174
193168
|
.getByTestId(COMMON_SELECTORS.paneBody)
|
|
193175
193169
|
.getByRole("row");
|
|
193176
193170
|
firstName &&
|
|
193177
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
193178
193171
|
(await test$1.expect(rowInPane
|
|
193179
193172
|
.filter({ hasText: this.t("neetoTeamMembers.labels.firstName") })
|
|
193180
193173
|
.getByText(firstName)).toBeVisible());
|
|
193181
193174
|
lastName &&
|
|
193182
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
193183
193175
|
(await test$1.expect(rowInPane
|
|
193184
193176
|
.filter({ hasText: this.t("neetoTeamMembers.labels.lastName") })
|
|
193185
193177
|
.getByText(lastName)).toBeVisible());
|
|
193186
193178
|
roleName &&
|
|
193187
|
-
// eslint-disable-next-line playwright/no-standalone-expect
|
|
193188
193179
|
(await test$1.expect(rowInPane
|
|
193189
193180
|
.filter({ hasText: AUDIT_LOGS_TEXTS.organizationRole })
|
|
193190
193181
|
.getByText(roleName)).toBeVisible());
|