@bigbinary/neeto-playwright-commons 1.26.14 → 1.26.16
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 +10 -3
- package/index.cjs.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +10 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -5101,7 +5101,7 @@ const NEETO_EDITOR_SELECTORS = {
|
|
|
5101
5101
|
videoWrapper: "neeto-editor-video-wrapper",
|
|
5102
5102
|
paragraphOption: fixedMenuSelector("font-size-option-body2"),
|
|
5103
5103
|
calloutOption: fixedMenuSelector("callout-option"),
|
|
5104
|
-
attachmentPreview: "
|
|
5104
|
+
attachmentPreview: "neeto-editor-fixed-menu-attachments-option",
|
|
5105
5105
|
imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
|
|
5106
5106
|
errorText: "neeto-editor-error-text",
|
|
5107
5107
|
content: "editor-content",
|
|
@@ -116907,6 +116907,9 @@ class WebhooksPage {
|
|
|
116907
116907
|
webhookSiteURL: `${THIRD_PARTY_ROUTES.webhooks.site}${webhookToken}`,
|
|
116908
116908
|
};
|
|
116909
116909
|
};
|
|
116910
|
+
/**
|
|
116911
|
+
* @deprecated This method is deprecated. Use getTokenViaAPI instead.
|
|
116912
|
+
*/
|
|
116910
116913
|
this.getWebhookURL = async () => {
|
|
116911
116914
|
var _a;
|
|
116912
116915
|
const WEBHOOK_URL_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/g;
|
|
@@ -118511,8 +118514,8 @@ class TeamMembers {
|
|
|
118511
118514
|
}
|
|
118512
118515
|
}
|
|
118513
118516
|
|
|
118514
|
-
const fillCredentialsAndSubmit = async ({ page, loginPath
|
|
118515
|
-
await page.goto(loginPath, { timeout: 30000 });
|
|
118517
|
+
const fillCredentialsAndSubmit = async ({ page, loginPath, email = CREDENTIALS.email, }) => {
|
|
118518
|
+
loginPath && (await page.goto(loginPath, { timeout: 30000 }));
|
|
118516
118519
|
await page.waitForLoadState("load", { timeout: 35000 });
|
|
118517
118520
|
await page.getByTestId(LOGIN_SELECTORS.emailTextField).fill(email);
|
|
118518
118521
|
await page
|
|
@@ -118696,6 +118699,10 @@ class OrganizationPage {
|
|
|
118696
118699
|
}).toPass({ timeout: loginTimeout });
|
|
118697
118700
|
};
|
|
118698
118701
|
this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout = 2 * 60 * 1000) => {
|
|
118702
|
+
if (IS_DEV_ENV) {
|
|
118703
|
+
await fillCredentialsAndSubmit({ page: this.page, email });
|
|
118704
|
+
return;
|
|
118705
|
+
}
|
|
118699
118706
|
await this.fillEmailAndSubmit(email, loginTimeout);
|
|
118700
118707
|
await this.fillOTP();
|
|
118701
118708
|
};
|