✨ feat: enhance accessibility with skip to main content button and improve navigation handling
🔧 fix: update navigation href resolution to include localized paths 🆕 feat: add new FeatureIcon component for feature boxes 🎨 style: improve styling for prose elements in richtext blocks 🛠️ refactor: streamline medialib image loading and caching logic 📦 chore: update mock data handling to support new medialib entries 🔄 chore: synchronize i18n initialization and locale management 📝 docs: update video tour descriptions to reflect recent changes
This commit is contained in:
@@ -36,4 +36,20 @@ test.describe("Home Page", () => {
|
||||
expect(page.url()).toContain("/en")
|
||||
}
|
||||
})
|
||||
|
||||
test("should allow skipping directly to main content", async ({ page }) => {
|
||||
await page.goto("/de/")
|
||||
await waitForSpaReady(page)
|
||||
|
||||
await page.keyboard.press("Tab")
|
||||
|
||||
const skipLink = page.getByRole("button", { name: "Zum Hauptinhalt springen" })
|
||||
await expect(skipLink).toBeFocused()
|
||||
|
||||
await page.keyboard.press("Enter")
|
||||
|
||||
const mainContent = page.locator("main#main-content")
|
||||
await expect(mainContent).toBeFocused()
|
||||
await expect(page).toHaveURL(/#main-content$/)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user