Skip to content

Commit 5d67672

Browse files
committed
Fix UnknownUser e2e assertions for both en-US and da-DK after the Slack-style copy rewrite
1 parent 8028f01 commit 5d67672

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

application/account/WebApp/tests/e2e/localized-email-flows.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ test.describe("@comprehensive", () => {
238238
await step("Fetch en-US unknown user email from Mailpit & assert subject, HTML, and plaintext")(async () => {
239239
const mail = await fetchLatestMailByRecipient(enUnknownEmail);
240240

241-
expect(mail.subject).toBe("Unknown user tried to login to PlatformPlatform");
242-
expect(mail.html).toContain("You or someone else tried to login to PlatformPlatform");
241+
expect(mail.subject).toBe("No account found");
242+
expect(mail.html).toContain("Is this the right email address?");
243243
expect(mail.html).toContain(enUnknownEmail);
244-
expect(mail.text).toContain("You or someone else tried to login to PlatformPlatform");
244+
expect(mail.text).toContain("Is this the right email address?");
245245
expect(mail.text).toContain(enUnknownEmail);
246246
})();
247247

@@ -261,10 +261,10 @@ test.describe("@comprehensive", () => {
261261
async () => {
262262
const mail = await fetchLatestMailByRecipient(daUnknownEmail);
263263

264-
expect(mail.subject).toBe("Ukendt bruger forsøgte at logge ind på PlatformPlatform");
265-
expect(mail.html).toContain("Du eller en anden forsøgte at logge ind på PlatformPlatform");
264+
expect(mail.subject).toBe("Ingen konto fundet");
265+
expect(mail.html).toContain("Er det den rigtige e-mailadresse?");
266266
expect(mail.html).toContain(daUnknownEmail);
267-
expect(mail.text).toContain("Du eller en anden forsøgte at logge ind på PlatformPlatform");
267+
expect(mail.text).toContain("Er det den rigtige e-mailadresse?");
268268
expect(mail.text).toContain(daUnknownEmail);
269269
}
270270
)();

0 commit comments

Comments
 (0)