fix: add @axe-core/playwright to devDependencies; remove duplicate ITALY_URL constant

This commit is contained in:
2026-06-21 16:18:10 +02:00
parent 508fcbdbe8
commit f00f48c40c
3 changed files with 28 additions and 5 deletions
+2 -4
View File
@@ -53,16 +53,14 @@ test('A3d: clicking Stats toggle sets aria-expanded="true" then back to false',
await expect(page.locator('#trip-stats-toggle')).toHaveAttribute('aria-expanded', 'false');
});
const ITALY_URL = '/trips/italy-2026-demo';
test('A3e: Cycling toggle has aria-expanded="false" and aria-controls on load', async ({ page }) => {
await page.goto(ITALY_URL);
await page.goto(TRIP_URL);
await expect(page.locator('#trip-cycling-toggle')).toHaveAttribute('aria-expanded', 'false');
await expect(page.locator('#trip-cycling-toggle')).toHaveAttribute('aria-controls', 'trip-cycling-block');
});
test('A3f: clicking Cycling toggle sets aria-expanded="true" then back to false', async ({ page }) => {
await page.goto(ITALY_URL);
await page.goto(TRIP_URL);
await page.click('#trip-cycling-toggle');
await expect(page.locator('#trip-cycling-toggle')).toHaveAttribute('aria-expanded', 'true');
await page.click('#trip-cycling-toggle');