@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.d.ts
CHANGED
|
@@ -1174,7 +1174,7 @@ declare class ThankYouPage {
|
|
|
1174
1174
|
*/
|
|
1175
1175
|
addRedirectUrl: (customRedirectUrl: string) => Promise<void>;
|
|
1176
1176
|
}
|
|
1177
|
-
type EmbedType = "inline" | "floatingPopup" | "elementPopup";
|
|
1177
|
+
type EmbedType = "inline" | "floatingPopup" | "elementPopup" | "iframe";
|
|
1178
1178
|
type GetByRoleOptions = {
|
|
1179
1179
|
checked?: boolean;
|
|
1180
1180
|
disabled?: boolean;
|
package/index.js
CHANGED
|
@@ -188675,10 +188675,24 @@ class ThankYouPage {
|
|
|
188675
188675
|
};
|
|
188676
188676
|
this.verifyThankYouImage = async (imagePath, imageName) => {
|
|
188677
188677
|
await expect(this.page.getByTestId(THANK_YOU_SELECTORS.thankYouConfigurationLabel())).toBeChecked();
|
|
188678
|
-
await this.
|
|
188678
|
+
await this.page
|
|
188679
|
+
.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadOption)
|
|
188680
|
+
.click();
|
|
188681
|
+
await this.neetoPlaywrightUtilities.uploadFileViaDispatch({
|
|
188682
|
+
fileNameWithType: imagePath,
|
|
188683
|
+
droppableZone: this.page.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadButton),
|
|
188684
|
+
});
|
|
188679
188685
|
await expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.progressBar)).toBeHidden();
|
|
188680
|
-
await expect(this.page.getByTestId(
|
|
188681
|
-
await
|
|
188686
|
+
await expect(this.page.getByTestId(NEETO_EDITOR_SELECTORS.editorMediaUploaderTab)).toBeHidden({ timeout: 10000 });
|
|
188687
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
188688
|
+
await Promise.all([
|
|
188689
|
+
expect(this.page
|
|
188690
|
+
.getByTestId(NEETO_EDITOR_SELECTORS.imageWrapper)
|
|
188691
|
+
.locator("img")).toHaveAttribute("src", RegExp(imageName), { timeout: 15000 }),
|
|
188692
|
+
expect(this.page
|
|
188693
|
+
.getByTestId(THANK_YOU_SELECTORS.previewEditorContent)
|
|
188694
|
+
.locator("img")).toHaveAttribute("src", RegExp(imageName), { timeout: 15000 }),
|
|
188695
|
+
]);
|
|
188682
188696
|
};
|
|
188683
188697
|
this.verifyEditorMenu = async () => {
|
|
188684
188698
|
await Promise.all([
|
|
@@ -188737,7 +188751,7 @@ class EmbedBase {
|
|
|
188737
188751
|
timeout: 20000,
|
|
188738
188752
|
});
|
|
188739
188753
|
await this.embedTestPage.waitForLoadState("load");
|
|
188740
|
-
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
188754
|
+
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline" || this.embedTestPageType === "iframe"
|
|
188741
188755
|
? "iframe"
|
|
188742
188756
|
: EMBED_SELECTORS.iframe(this.appName));
|
|
188743
188757
|
return this.embedTestPage;
|
|
@@ -188754,13 +188768,14 @@ class EmbedBase {
|
|
|
188754
188768
|
timeout: 20000,
|
|
188755
188769
|
});
|
|
188756
188770
|
await this.embedTestPage.waitForLoadState("load");
|
|
188757
|
-
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline"
|
|
188771
|
+
this.embeddedFrame = this.embedTestPage.frameLocator(this.embedTestPageType === "inline" || this.embedTestPageType === "iframe"
|
|
188758
188772
|
? "iframe"
|
|
188759
188773
|
: EMBED_SELECTORS.iframe(this.appName));
|
|
188760
188774
|
return this.embedTestPage;
|
|
188761
188775
|
};
|
|
188762
188776
|
this.closeEmbedModalAndPage = async () => {
|
|
188763
|
-
if (this.embedTestPageType !== "inline"
|
|
188777
|
+
if (this.embedTestPageType !== "inline" &&
|
|
188778
|
+
this.embedTestPageType !== "iframe") {
|
|
188764
188779
|
await this.embedTestPage
|
|
188765
188780
|
.locator(EMBED_SELECTORS.close(this.appName))
|
|
188766
188781
|
.click();
|
|
@@ -193024,7 +193039,7 @@ class OrganizationPage {
|
|
|
193024
193039
|
await this.page.getByTestId(COMMON_SELECTORS.checkbox).click();
|
|
193025
193040
|
const profileSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton);
|
|
193026
193041
|
await profileSubmitButton.click();
|
|
193027
|
-
await expect(profileSubmitButton).toBeHidden({ timeout:
|
|
193042
|
+
await expect(profileSubmitButton).toBeHidden({ timeout: 60000 });
|
|
193028
193043
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
193029
193044
|
};
|
|
193030
193045
|
this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, baseURL = process.env.BASE_URL, fetchOtpFromEmail, }) => {
|
|
@@ -193262,7 +193277,7 @@ class CustomDomainPage {
|
|
|
193262
193277
|
updateCredentials({ key: "domain", value: CUSTOM_DOMAIN_SUFFIX });
|
|
193263
193278
|
};
|
|
193264
193279
|
// eslint-disable-next-line playwright/no-wait-for-timeout
|
|
193265
|
-
this.waitForDomainPropagation = () => this.page.waitForTimeout(
|
|
193280
|
+
this.waitForDomainPropagation = () => this.page.waitForTimeout(15000);
|
|
193266
193281
|
this.setupCustomDomain = async () => {
|
|
193267
193282
|
if (shouldSkipCustomDomainSetup())
|
|
193268
193283
|
return;
|