Connect the live modals to the drawn sent, expired, invalid-email, and send-failed screens, pin the phone footer above the keyboard, and send the light login email.
12 lines
442 B
TypeScript
12 lines
442 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import login from "../../messages/en/pages/login.json";
|
|
import { MAGIC_LINK_TTL_MINUTES } from "../../lib/privacyRetention";
|
|
|
|
describe("privacy retention copy", () => {
|
|
it("states the login link lifetime in the sent state", () => {
|
|
expect(
|
|
login.sentBody.replace("{minutes}", String(MAGIC_LINK_TTL_MINUTES)),
|
|
).toContain(`works for ${MAGIC_LINK_TTL_MINUTES} minutes`);
|
|
});
|
|
});
|