@bigbinary/neeto-playwright-commons 1.13.11 → 1.13.13
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 +8 -4
- package/index.cjs.js.map +1 -1
- package/index.d.ts +7 -0
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -12080,13 +12080,13 @@ class MailerUtils {
|
|
|
12080
12080
|
this.getEmails = async (ids) => {
|
|
12081
12081
|
const messageDetailsBody = {
|
|
12082
12082
|
ids,
|
|
12083
|
-
bodyProperties: ["type"],
|
|
12083
|
+
bodyProperties: ["type", "name"],
|
|
12084
12084
|
fetchHTMLBodyValues: true,
|
|
12085
12085
|
};
|
|
12086
12086
|
const { methodResponses: [[, { list }]], } = await this.fastmailApi.apiRequest("Email/get", messageDetailsBody);
|
|
12087
12087
|
const formattedList = list.map((listItem) => {
|
|
12088
12088
|
var _a;
|
|
12089
|
-
const { id, from, to, bodyValues, cc, bcc, replyTo, receivedAt, subject, } = listItem;
|
|
12089
|
+
const { id, from, to, bodyValues, cc, bcc, replyTo, receivedAt, subject, attachments, } = listItem;
|
|
12090
12090
|
const emailBody = Object.values(ramda.pluck("value", bodyValues)).join(" ");
|
|
12091
12091
|
const emailBodyWithStrippedHead = emailBody.split("</head>").at(-1);
|
|
12092
12092
|
const links = emailBodyWithStrippedHead.match(/(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])/g);
|
|
@@ -12118,6 +12118,7 @@ class MailerUtils {
|
|
|
12118
12118
|
replyTo,
|
|
12119
12119
|
received: new Date(receivedAt),
|
|
12120
12120
|
subject,
|
|
12121
|
+
attachments,
|
|
12121
12122
|
};
|
|
12122
12123
|
});
|
|
12123
12124
|
return formattedList;
|
|
@@ -25001,11 +25002,14 @@ class OrganizationPage {
|
|
|
25001
25002
|
}
|
|
25002
25003
|
}
|
|
25003
25004
|
};
|
|
25004
|
-
this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout =
|
|
25005
|
+
this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout = 2 * 60 * 1000) => {
|
|
25005
25006
|
await this.page.getByTestId(LOGIN_SELECTORS.emailTextField).fill(email);
|
|
25007
|
+
const unregisteredEmailError = this.page.getByTestId(SIGNUP_SELECTORS.unregisterdEmailError);
|
|
25006
25008
|
await test$1.expect(async () => {
|
|
25007
25009
|
await this.page.getByTestId(LOGIN_SELECTORS.submitButton).click();
|
|
25008
|
-
await test$1.expect(
|
|
25010
|
+
await test$1.expect(unregisteredEmailError).toBeHidden();
|
|
25011
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
25012
|
+
await test$1.expect(unregisteredEmailError).toBeHidden();
|
|
25009
25013
|
}).toPass({ timeout: loginTimeout });
|
|
25010
25014
|
await this.page
|
|
25011
25015
|
.getByTestId(SIGNUP_SELECTORS.otpTextBox)
|