Skip to content

Commit

Permalink
test: enable i18n root redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Jun 22, 2024
1 parent 8969b10 commit f8cfd1e
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 12 deletions.
6 changes: 1 addition & 5 deletions e2e/tests/app/i18n.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ test.describe("i18n", () => {
test.describe("should redirect root route to preferred locale", () => {
test.use({ locale: "de" });

/**
* FIXME: Currently, this breaks when pre-rendering the page via `routeRules`.
* This is an upstream issue in `@nuxtjs/i18n`.
*/
test.fixme("with supported locale", async ({ page }) => {
test("with supported locale", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveURL("/de");
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"@acdh-oeaw/lib": "^0.1.12",
"@fontsource-variable/inter": "^5.0.18",
"@nuxt/content": "^2.13.0",
"@nuxt/content": "^2.12.1",
"@nuxt/image": "^1.7.0",
"@nuxtjs/color-mode": "^3.4.1",
"@nuxtjs/i18n": "^8.3.1",
Expand Down
69 changes: 63 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f8cfd1e

Please sign in to comment.