fix: add @axe-core/playwright to devDependencies; remove duplicate ITALY_URL constant
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user