fix(BUG-092): add Change Email link to footer on landing and sub-pages
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
This commit is contained in:
parent
bb0a17a6f3
commit
82946ffcf0
9 changed files with 29 additions and 0 deletions
|
|
@ -129,4 +129,25 @@ describe("App-level routes", () => {
|
|||
expect(res.headers["permissions-policy"]).toContain("camera=()");
|
||||
});
|
||||
});
|
||||
|
||||
describe("BUG-092: Footer Change Email link", () => {
|
||||
it("landing page footer contains Change Email link", async () => {
|
||||
const res = await request(app).get("/");
|
||||
expect(res.status).toBe(200);
|
||||
const html = res.text;
|
||||
expect(html).toContain('class="open-email-change"');
|
||||
expect(html).toMatch(/footer-links[\s\S]*open-email-change[\s\S]*Change Email/);
|
||||
});
|
||||
|
||||
it("sub-page footer partial contains Change Email link", async () => {
|
||||
const fs = await import("fs");
|
||||
const path = await import("path");
|
||||
const footer = fs.readFileSync(
|
||||
path.join(__dirname, "../../public/partials/_footer.html"),
|
||||
"utf-8"
|
||||
);
|
||||
expect(footer).toContain('class="open-email-change"');
|
||||
expect(footer).toContain('href="/#change-email"');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue