CSS disappears after mousing over the snapshot links #27632
Labels
stage: needs investigating
Someone from Cypress needs to look at this
stale
no activity on this issue for a long period
type: bug
Current behavior
After running cypress e2e tests, the target site gets rendered as expected.
However, if you over the mouse cursor over any of the test snapshot links in the cypress desktop app, then certain css styles unexpectedly disappear from these snapshots.
More specifically, the
<link>
elements used to import dark/light theme css files will disappear from the<head>
section after you hover the mouse over a snapshot.This causes the background color to change from dark gray to white.
For example, this is before hovering the mouse over
1 visit /
:...and this is after:
Desired behavior
The website's background color should remain gray/black whether or not the user hovers over the snapshot link.
Test code to reproduce
https://github.com/nick-true-dev/cypress_css_issue_example
Cypress Version
12.17.4
Node version
16.20.1
Operating System
macOS 12.6.8
Debug Logs
No response
Other
Note that the elements get added dynamically by addLinkElt() in App.vue in this example.
The text was updated successfully, but these errors were encountered: