fix(i18n): render consent banner inside NextIntl provider
Move ConsentBanner rendering into the locale layout so next-intl context is always available (prevents missing provider errors). fix(activity-feed): use dark styling for disabled state Avoid white disabled cards so the feed never appears as a white/transparent block after reload. test(e2e): assert nav text changes on locale switch Strengthen i18n test to verify translated labels. Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
@@ -7,8 +7,14 @@ test.describe("i18n routing", () => {
|
||||
// Buttons are "EN"/"DE" in the header
|
||||
const deButton = page.getByRole("button", { name: "DE" });
|
||||
if (await deButton.count()) {
|
||||
// Verify an EN label is present before switching (nav.home)
|
||||
await expect(page.getByRole("link", { name: "Home" })).toBeVisible();
|
||||
|
||||
await deButton.click();
|
||||
await expect(page).toHaveURL(/\/de(\/|$)/);
|
||||
|
||||
// Verify the nav label updates after switching
|
||||
await expect(page.getByRole("link", { name: "Start" })).toBeVisible();
|
||||
} else {
|
||||
test.skip();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user