-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e4bdee
commit 1b4b952
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
import { test, expect } from "../fixtures/axe-test"; | ||
import { recipeManagementEnabled, userFixture } from "./helpers"; | ||
|
||
test.describe("User Settings page", () => { | ||
test.describe("Recipe page", () => { | ||
test.beforeEach(async ({ page }) => { | ||
if (recipeManagementEnabled) { | ||
// TODO | ||
test.fail(); | ||
await page.goto("/fh/en_US/recipes/1"); | ||
} else { | ||
console.info( | ||
`Skipping Recipe tests because environment variables are not set.` | ||
); | ||
test.skip(); | ||
} | ||
}); | ||
|
||
test("should not have any automatically detectable accessibility issues", async ({ | ||
makeAxeBuilder, | ||
}) => { | ||
test.slow(); | ||
const accessibilityScanResults = await makeAxeBuilder().analyze(); | ||
expect(accessibilityScanResults.violations).toEqual([]); | ||
}); | ||
|
||
test("should not have any automatically detectable accessibility issues in dark mode", async ({ | ||
page, | ||
makeAxeBuilder, | ||
}) => { | ||
test.slow(); | ||
await page.emulateMedia({ colorScheme: "dark" }); | ||
const accessibilityScanResults = await makeAxeBuilder().analyze(); | ||
expect(accessibilityScanResults.violations).toEqual([]); | ||
}); | ||
}); |