You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/e2e/tests/backend/endpoints/api/v1/integrations/credential-scanning/revoke.test.ts
+12-18Lines changed: 12 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ it("should send email notification to user when revoking an API key through cred
84
84
"attachments": [],
85
85
"body": {
86
86
"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>
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.
107
106
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.
110
108
111
109
Please create a new API key if needed.
112
110
\`,
@@ -231,7 +229,7 @@ it("should send email notification to team members when revoking a team API key
231
229
"attachments": [],
232
230
"body": {
233
231
"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>
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.
254
251
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.
257
253
258
254
Please create a new API key if needed.
259
255
\`,
@@ -271,7 +267,7 @@ it("should send email notification to team members when revoking a team API key
271
267
"attachments": [],
272
268
"body": {
273
269
"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>
Copy file name to clipboardExpand all lines: apps/e2e/tests/backend/endpoints/api/v1/unsubscribe-link.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ it("unsubscribe link should not be sent for emails with transactional notificati
130
130
constmessages=awaitbackendContext.value.mailbox.waitForMessagesWithSubject("Custom Test Email Subject");
131
131
constsentEmail=messages[0];
132
132
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, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";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,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";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>"`);
134
134
});
135
135
136
136
it("unsubscribe link should be included when template exports Marketing notification category (two-pass rendering)",async({ expect })=>{
0 commit comments