@bigbinary/neeto-playwright-commons 4.4.0 → 4.4.2

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.
Files changed (3) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +7 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -10073,6 +10073,7 @@ interface InboundEmailParams {
10073
10073
  subject: string;
10074
10074
  body: string;
10075
10075
  messageId: string;
10076
+ forwardedTo?: string;
10076
10077
  }
10077
10078
  interface ReplyInboundEmailParams extends InboundEmailParams {
10078
10079
  replyToMessageId: string;
@@ -10094,6 +10095,7 @@ declare class InboundEmailApis {
10094
10095
  * subject: faker.git.commitMessage(),
10095
10096
  * body: faker.lorem.sentence(),
10096
10097
  * messageId: `${faker.string.uuid()}@playwright.test`,
10098
+ * forwardedTo: supportEmail(subdomainName, "forward"), // optional — X-Forwarded-To
10097
10099
  * });
10098
10100
  */
10099
10101
  create: (emailParams: InboundEmailParams) => Promise<playwright_core.APIResponse | undefined>;
package/index.js CHANGED
@@ -117055,7 +117055,7 @@ const commands = {
117055
117055
  await use(commands);
117056
117056
  },
117057
117057
  page: async ({ page }, use) => {
117058
- await page.goto("/", { timeout: 35_000 });
117058
+ await page.goto("/");
117059
117059
  await page.waitForLoadState();
117060
117060
  await use(page);
117061
117061
  },
@@ -127020,6 +127020,7 @@ const definePlaywrightConfig = (overrides) => {
127020
127020
  use: {
127021
127021
  ...devices["Desktop Chrome"],
127022
127022
  baseURL: process.env.PLAYWRIGHT_PRODUCTION_BASE_URL,
127023
+ navigationTimeout: 60_000,
127023
127024
  screenshot: "on",
127024
127025
  trace: "on",
127025
127026
  },
@@ -127052,6 +127053,7 @@ class InboundEmailApis {
127052
127053
  * subject: faker.git.commitMessage(),
127053
127054
  * body: faker.lorem.sentence(),
127054
127055
  * messageId: `${faker.string.uuid()}@playwright.test`,
127056
+ * forwardedTo: supportEmail(subdomainName, "forward"), // optional — X-Forwarded-To
127055
127057
  * });
127056
127058
  */
127057
127059
  create = (emailParams) => this.deliverSource(emailParams);
@@ -127072,11 +127074,14 @@ class InboundEmailApis {
127072
127074
  * });
127073
127075
  */
127074
127076
  reply = (emailParams) => this.deliverSource(emailParams);
127075
- deliverSource = ({ senderEmail, senderName, to, subject, body, messageId, replyToMessageId, }) => {
127077
+ deliverSource = ({ senderEmail, senderName, to, subject, body, messageId, replyToMessageId, forwardedTo, }) => {
127076
127078
  const source = [
127077
127079
  `Message-ID: <${normalizeMessageId(messageId)}>`,
127078
127080
  `From: "${sanitizeHeaderValue(senderName).replace(/"/g, '\\"')}" <${senderEmail}>`,
127079
127081
  `To: ${to}`,
127082
+ ...(forwardedTo
127083
+ ? [`X-Forwarded-To: ${sanitizeHeaderValue(forwardedTo)}`]
127084
+ : []),
127080
127085
  `Subject: ${sanitizeHeaderValue(subject)}`,
127081
127086
  ...(replyToMessageId
127082
127087
  ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "description": "A package encapsulating common playwright code across neeto projects.",
5
5
  "repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
6
6
  "license": "apache-2.0",