[Tests] Incorrect 2nd argument to window.getComputedStyle #10369
Labels
4 - verified
Issues that have been released and confirmed resolved.
estimate - 1
Very small fix or change (potentially a single line), doesn't require updates to tests.
p - low
Issue is non core or affecting less that 10% of people using the library
testing
Issues related to automated or manual testing.
Milestone
Priority impact
p - low
Test type
E2E tests
Which Component(s)
Button, Chip, ...
Unstable Tests
In several places in the code, Calcite's E2E tests call
.getComputedStyle
with:hover
or:focus
as the 2nd argument:calcite-design-system/packages/calcite-components/src/components/button/button.e2e.ts
Lines 538 to 585 in 2305e01
As far as I am aware this is not valid. Per MDN, only
::after
and::before
are allowed.ChatGPT o1 says the same:
Test error, if applicable
While
:hover
and:focus
appears to work fine in Chrome 119 (which is what your Stencil E2E tests are using), it does not appear to work in Chrome 128 (the latest version), causing failing tests.You should refactor the usages in tests to not pass
:hover
or:focus
PR skipped, if applicable
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: