fix layout SSR translations and remediation follow-ups
This commit is contained in:
@@ -60,10 +60,14 @@ describe("full app", () => {
|
||||
});
|
||||
afterAll(() => app?.close());
|
||||
|
||||
test("home page responds with HTML", async () => {
|
||||
test("home page server-renders translated page and layout text", async () => {
|
||||
const res = await app.fetch("/");
|
||||
expect(res.status).toBe(200);
|
||||
expect(res.headers.get("content-type")).toContain("text/html");
|
||||
const html = await res.text();
|
||||
expect(html).toContain('<span data-t="nav.home">Home</span>');
|
||||
expect(html).toContain('<span data-t="home.title">Hello from WrNexus</span>');
|
||||
expect(html).not.toContain('<span data-t="nav.home"></span>');
|
||||
});
|
||||
|
||||
test("GET /api/hello returns a translated greeting", async () => {
|
||||
|
||||
Reference in New Issue
Block a user