Open nmerget opened 6 months ago
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.
Thanks for the hint :)
I added a workaround. I added -webkit-text-fill-color
with *
. It's not the prettiest solution but it works :D
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?