@bigbinary/neeto-playwright-commons 1.22.15 → 1.22.17
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 +23 -8
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +23 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -188695,10 +188695,24 @@ class ThankYouPage {
|
|
|
188695
188695
|
};
|
|
188696
188696
|
this.verifyThankYouImage = async (imagePath, imageName) => {
|
|
188697
188697
|
await test$1.expect(this.page.getByTestId(THANK_YOU_SELECTORS.thankYouConfigurationLabel())).toBeChecked();
|
|
188698
|
-
await this.
|
|
188698
|
+
await this.page
|
|
188699
|
+
.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadOption)
|
|
188700
|
+
.click();
|
|
188701
|
+
await this.neetoPlaywrightUtilities.uploadFileViaDispatch({
|
|
188702
|
+
fileNameWithType: imagePath,
|
|
188703
|
+
droppableZone: this.page.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadButton),
|
|
188704
|
+
});
|
|
188699
188705
|
await test$1.expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.progressBar)).toBeHidden();
|
|
188700
|
-
await test$1.expect(this.page.getByTestId(
|
|
188701
|
-
await
|
|
188706
|
+
await test$1.expect(this.page.getByTestId(NEETO_EDITOR_SELECTORS.editorMediaUploaderTab)).toBeHidden({ timeout: 10000 });
|
|
188707
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
188708
|
+
await Promise.all([
|
|
188709
|
+
test$1.expect(this.page
|
|
188710
|
+
.getByTestId(NEETO_EDITOR_SELECTORS.imageWrapper)
|
|
188711
|
+
.locator("img")).toHaveAttribute("src", RegExp(imageName), { timeout: 15000 }),
|
|
188712
|
+
test$1.expect(this.page
|
|
188713
|
+
.getByTestId(THANK_YOU_SELECTORS.previewEditorContent)
|
|
188714
|
+
.locator("img")).toHaveAttribute("src", RegExp(imageName), { timeout: 15000 }),
|
|
188715
|
+
]);
|
|
188702
188716
|
};
|
|
188703
188717
|
this.verifyEditorMenu = async () => {
|
|
188704
188718
|
await Promise.all([
|
|
@@ -188757,7 +188771,7 @@ class EmbedBase {
|
|
|
188757
188771
|
timeout: 20000,
|
|
188758
188772
|
});
|
|
188759
188773
|
await this.embedTestPage.waitForLoadState("load");
|
|
188760
|
-
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
188774
|
+
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline" || this.embedTestPageType === "iframe"
|
|
188761
188775
|
? "iframe"
|
|
188762
188776
|
: EMBED_SELECTORS.iframe(this.appName));
|
|
188763
188777
|
return this.embedTestPage;
|
|
@@ -188774,13 +188788,14 @@ class EmbedBase {
|
|
|
188774
188788
|
timeout: 20000,
|
|
188775
188789
|
});
|
|
188776
188790
|
await this.embedTestPage.waitForLoadState("load");
|
|
188777
|
-
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
188791
|
+
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline" || this.embedTestPageType === "iframe"
|
|
188778
188792
|
? "iframe"
|
|
188779
188793
|
: EMBED_SELECTORS.iframe(this.appName));
|
|
188780
188794
|
return this.embedTestPage;
|
|
188781
188795
|
};
|
|
188782
188796
|
this.closeEmbedModalAndPage = async () => {
|
|
188783
|
-
if (this.embedTestPageType !== "inline"
|
|
188797
|
+
if (this.embedTestPageType !== "inline" &&
|
|
188798
|
+
this.embedTestPageType !== "iframe") {
|
|
188784
188799
|
await this.embedTestPage
|
|
188785
188800
|
.locator(EMBED_SELECTORS.close(this.appName))
|
|
188786
188801
|
.click();
|
|
@@ -193044,7 +193059,7 @@ class OrganizationPage {
|
|
|
193044
193059
|
await this.page.getByTestId(COMMON_SELECTORS.checkbox).click();
|
|
193045
193060
|
const profileSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton);
|
|
193046
193061
|
await profileSubmitButton.click();
|
|
193047
|
-
await test$1.expect(profileSubmitButton).toBeHidden({ timeout:
|
|
193062
|
+
await test$1.expect(profileSubmitButton).toBeHidden({ timeout: 60000 });
|
|
193048
193063
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
193049
193064
|
};
|
|
193050
193065
|
this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, baseURL = process.env.BASE_URL, fetchOtpFromEmail, }) => {
|
|
@@ -193282,7 +193297,7 @@ class CustomDomainPage {
|
|
|
193282
193297
|
updateCredentials({ key: "domain", value: CUSTOM_DOMAIN_SUFFIX });
|
|
193283
193298
|
};
|
|
193284
193299
|
// eslint-disable-next-line playwright/no-wait-for-timeout
|
|
193285
|
-
this.waitForDomainPropagation = () => this.page.waitForTimeout(
|
|
193300
|
+
this.waitForDomainPropagation = () => this.page.waitForTimeout(15000);
|
|
193286
193301
|
this.setupCustomDomain = async () => {
|
|
193287
193302
|
if (shouldSkipCustomDomainSetup())
|
|
193288
193303
|
return;
|