Skip to content

Commit a08b23d

Browse files
committed
chore: update test screenshots
Since react-email has been bumped, the rendering is slightly different.
1 parent 7a07583 commit a08b23d

2 files changed

Lines changed: 13 additions & 19 deletions

File tree

apps/e2e/tests/backend/endpoints/api/v1/integrations/credential-scanning/revoke.test.ts

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ it("should send email notification to user when revoking an API key through cred
8484
"attachments": [],
8585
"body": {
8686
"html": deindent\`
87-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head></head><body><!--$--><div>
87+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head></head><body><!--$--><table border="0" width="100%" cellPadding="0" cellSpacing="0" role="presentation" align="center"><tbody><tr><td><div>
8888
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px;">
8989
<h2 style="color: #333;">API Key Revoked</h2>
9090
<p style="color: #555; font-size: 16px; line-height: 1.5;">
@@ -97,16 +97,14 @@ it("should send email notification to user when revoking an API key through cred
9797
Please create a new API key if needed.
9898
</p>
9999
</div>
100-
</div><!--3--><!--/$--></body></html>
100+
</div></td></tr></tbody></table><!--3--><!--/$--></body></html>
101101
\`,
102102
"text": deindent\`
103103
API KEY REVOKED
104104
105-
Your API key "Test API Key to Revoke <HTML Test &>" for New Project has been
106-
automatically revoked because it was found in a public repository.
105+
Your API key "Test API Key to Revoke <HTML Test &>" for New Project has been automatically revoked because it was found in a public repository.
107106
108-
This is an automated security measure to protect your api keys from being
109-
leaked. If you believe this was a mistake, please contact support.
107+
This is an automated security measure to protect your api keys from being leaked. If you believe this was a mistake, please contact support.
110108
111109
Please create a new API key if needed.
112110
\`,
@@ -231,7 +229,7 @@ it("should send email notification to team members when revoking a team API key
231229
"attachments": [],
232230
"body": {
233231
"html": deindent\`
234-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head></head><body><!--$--><div>
232+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head></head><body><!--$--><table border="0" width="100%" cellPadding="0" cellSpacing="0" role="presentation" align="center"><tbody><tr><td><div>
235233
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px;">
236234
<h2 style="color: #333;">API Key Revoked</h2>
237235
<p style="color: #555; font-size: 16px; line-height: 1.5;">
@@ -244,16 +242,14 @@ it("should send email notification to team members when revoking a team API key
244242
Please create a new API key if needed.
245243
</p>
246244
</div>
247-
</div><!--3--><!--/$--></body></html>
245+
</div></td></tr></tbody></table><!--3--><!--/$--></body></html>
248246
\`,
249247
"text": deindent\`
250248
API KEY REVOKED
251249
252-
Your API key "Test Team API Key to Revoke" for New Project has been
253-
automatically revoked because it was found in a public repository.
250+
Your API key "Test Team API Key to Revoke" for New Project has been automatically revoked because it was found in a public repository.
254251
255-
This is an automated security measure to protect your api keys from being
256-
leaked. If you believe this was a mistake, please contact support.
252+
This is an automated security measure to protect your api keys from being leaked. If you believe this was a mistake, please contact support.
257253
258254
Please create a new API key if needed.
259255
\`,
@@ -271,7 +267,7 @@ it("should send email notification to team members when revoking a team API key
271267
"attachments": [],
272268
"body": {
273269
"html": deindent\`
274-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head></head><body><!--$--><div>
270+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head></head><body><!--$--><table border="0" width="100%" cellPadding="0" cellSpacing="0" role="presentation" align="center"><tbody><tr><td><div>
275271
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px;">
276272
<h2 style="color: #333;">API Key Revoked</h2>
277273
<p style="color: #555; font-size: 16px; line-height: 1.5;">
@@ -284,16 +280,14 @@ it("should send email notification to team members when revoking a team API key
284280
Please create a new API key if needed.
285281
</p>
286282
</div>
287-
</div><!--3--><!--/$--></body></html>
283+
</div></td></tr></tbody></table><!--3--><!--/$--></body></html>
288284
\`,
289285
"text": deindent\`
290286
API KEY REVOKED
291287
292-
Your API key "Test Team API Key to Revoke" for New Project has been
293-
automatically revoked because it was found in a public repository.
288+
Your API key "Test Team API Key to Revoke" for New Project has been automatically revoked because it was found in a public repository.
294289
295-
This is an automated security measure to protect your api keys from being
296-
leaked. If you believe this was a mistake, please contact support.
290+
This is an automated security measure to protect your api keys from being leaked. If you believe this was a mistake, please contact support.
297291
298292
Please create a new API key if needed.
299293
\`,

apps/e2e/tests/backend/endpoints/api/v1/unsubscribe-link.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ it("unsubscribe link should not be sent for emails with transactional notificati
130130
const messages = await backendContext.value.mailbox.waitForMessagesWithSubject("Custom Test Email Subject");
131131
const sentEmail = messages[0];
132132
expect(sentEmail).toBeDefined();
133-
expect(sentEmail!.body?.html).toMatchInlineSnapshot(`"<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\"><html dir=\\"ltr\\" lang=\\"en\\"><head><meta content=\\"text/html; charset=UTF-8\\" http-equiv=\\"Content-Type\\"/><meta name=\\"x-apple-disable-message-reformatting\\"/></head><body style=\\"background-color:rgb(250,251,251);font-family:ui-sans-serif, system-ui, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;;font-size:1rem;line-height:1.5rem\\"><!--$--><table align=\\"center\\" width=\\"100%\\" border=\\"0\\" cellPadding=\\"0\\" cellSpacing=\\"0\\" role=\\"presentation\\" style=\\"background-color:rgb(255,255,255);padding:45px;border-radius:0.5rem;max-width:37.5em\\"><tbody><tr style=\\"width:100%\\"><td><div><h1>Test Email</h1><p>This is a test email with HTML content.</p></div></td></tr></tbody></table><!--7--><!--/$--></body></html>"`);
133+
expect(sentEmail!.body?.html).toMatchInlineSnapshot(`"<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\"><html dir=\\"ltr\\" lang=\\"en\\"><head><meta content=\\"text/html; charset=UTF-8\\" http-equiv=\\"Content-Type\\"/><meta name=\\"x-apple-disable-message-reformatting\\"/></head><body style=\\"background-color:rgb(250,251,251)\\"><!--$--><table border=\\"0\\" width=\\"100%\\" cellPadding=\\"0\\" cellSpacing=\\"0\\" role=\\"presentation\\" align=\\"center\\"><tbody><tr><td style=\\"background-color:rgb(250,251,251);font-family:ui-sans-serif,system-ui,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-size:1rem;line-height:1.5\\"><table align=\\"center\\" width=\\"100%\\" border=\\"0\\" cellPadding=\\"0\\" cellSpacing=\\"0\\" role=\\"presentation\\" style=\\"max-width:37.5em;background-color:rgb(255,255,255);padding:45px;border-radius:0.5rem\\"><tbody><tr style=\\"width:100%\\"><td><div><h1>Test Email</h1><p>This is a test email with HTML content.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--7--><!--/$--></body></html>"`);
134134
});
135135

136136
it("unsubscribe link should be included when template exports Marketing notification category (two-pass rendering)", async ({ expect }) => {

0 commit comments

Comments
 (0)