You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ "message": "Element has insufficient color contrast of 1.22 (foreground color: #1a1c1e, background color: #000000, font size: 7.5pt (10px), font weight: bold). Expected contrast ratio of 4.5:1",
+ "relatedNodes": Array [
+ Object {
+ "html": "<span id=\"badge\" class=\"db-badge\" data-emphasis=\"strong\">Test</span>",
+ "target": Array [
+ "#badge",
+ ],
+ },
+ ],
In the forceColors:true mode it shouldn't be possible to have a color like #1a1c1e. It should be white or black, so there should be an error in the analyze function.
I created a simple repo for reproduction. (I can add a GitHub actions if you wish to have the testing output as well)
Additional context
Somehow the snapshots in the timeline and below are different. Maybe the issue coming from analyze creating a new browserContext without using the settings of the context before?
The text was updated successfully, but these errors were encountered:
Thanks for the issue. I believe this is an axe-core issues as axe-core does not support dark mode nor forced-colors. I'll probably close this as a duplicate of those issues.
Product
playwright
Product Version
4.9.0
Latest Version
Issue Description
Expectation
The test shouldn't fail with
forcedColors:true
andcolorScheme: "dark"
.Actual
The test fails with:
In the
forceColors:true
mode it shouldn't be possible to have a color like#1a1c1e
. It should be white or black, so there should be an error in theanalyze
function.How to Reproduce
https://github.com/nmerget/axe-playwright-contrast-issue
I created a simple repo for reproduction. (I can add a GitHub actions if you wish to have the testing output as well)
Additional context
Somehow the snapshots in the timeline and below are different. Maybe the issue coming from
analyze
creating a new browserContext without using the settings of the context before?The text was updated successfully, but these errors were encountered: