@bigbinary/neeto-playwright-commons 1.22.16 → 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 +19 -5
- package/index.cjs.js.map +1 -1
- package/index.js +19 -5
- 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([
|
|
@@ -193045,7 +193059,7 @@ class OrganizationPage {
|
|
|
193045
193059
|
await this.page.getByTestId(COMMON_SELECTORS.checkbox).click();
|
|
193046
193060
|
const profileSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton);
|
|
193047
193061
|
await profileSubmitButton.click();
|
|
193048
|
-
await test$1.expect(profileSubmitButton).toBeHidden({ timeout:
|
|
193062
|
+
await test$1.expect(profileSubmitButton).toBeHidden({ timeout: 60000 });
|
|
193049
193063
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
193050
193064
|
};
|
|
193051
193065
|
this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, baseURL = process.env.BASE_URL, fetchOtpFromEmail, }) => {
|
|
@@ -193283,7 +193297,7 @@ class CustomDomainPage {
|
|
|
193283
193297
|
updateCredentials({ key: "domain", value: CUSTOM_DOMAIN_SUFFIX });
|
|
193284
193298
|
};
|
|
193285
193299
|
// eslint-disable-next-line playwright/no-wait-for-timeout
|
|
193286
|
-
this.waitForDomainPropagation = () => this.page.waitForTimeout(
|
|
193300
|
+
this.waitForDomainPropagation = () => this.page.waitForTimeout(15000);
|
|
193287
193301
|
this.setupCustomDomain = async () => {
|
|
193288
193302
|
if (shouldSkipCustomDomainSetup())
|
|
193289
193303
|
return;
|