-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@cypress/vue - Global component does only include CSS in first test #19721
Comments
I work around this problem by importing the styles in |
It affects local components too. This is caused by the Line 67 in 2d866f3
Which overrides the new |
The code for this is done in cypress-io/cypress#21291, but has yet to be released. |
I can confirm the issue is resolved for me with |
Current behavior
I use a global component for my FontAwesomeIcon (@fortawesome/vue-fontawesome).
When I import component and configure it in my mount statement then the CSS of this Component is only available in my first Test. All other test will miss the CSS.
Only when I import the CSS file directly, then it's available in all tests.
Desired behavior
The CSS should be loaded in all tests.
Test code to reproduce
Cypress Version
9.2.1
Other
"@cypress/vite-dev-server": "^2.2.2",
"@cypress/vue": "^3.1.0",
"cypress": "^9.2.1",
"vite": "^2.7.10",
"vue": "^3.2.26",
The text was updated successfully, but these errors were encountered: