Comments (5)
Could you try Cypress v4.5.0 and cypress-react-unit-test@4?
from cypress-react-unit-test.
Through some debugging I figured out that calling "appendChild" removes style from "all iframe". I've added "cloneNode" so all specs receives all styles. But they are still duplicated.
Now need to figure out what stylesheets are needed for a spec to clone them particulary.
There should be mark with a spec name (or smth. else) while webpack bundling... What do you think?
from cypress-react-unit-test.
from cypress-react-unit-test.
I ran into this issue today while trying to import CSS in cypress/support/index.js
so that the CSS would be available to all specs. When I run all specs, the CSS is only available to the first spec that mounts a component according to alphabetical order.
If I remove the CSS import from cypress/support/index.js
and add it to each individual spec, then I still see the same behavior where the CSS is available to the first mounted component but none after that.
from cypress-react-unit-test.
@bahmutov thanks!
It works perfectly now. I've already tried it here
from cypress-react-unit-test.
Related Issues (20)
- Create example showing how to test a component with MobX v6 HOT 1
- Error: Webpack Compilation Error HOT 1
- How one can attach to window custom fields? HOT 6
- Show example with Webpack + TypeScript + aliases HOT 1
- Move app dependencies into every folder HOT 2
- Trying to get cypress react unit testing working ... HOT 8
- Update older versions in external repositories HOT 1
- Cannot find module node_modules/get-package-type/index (in nyc module) HOT 5
- loadWebpack plugin doesn't work with terser, @rails/webpacker HOT 8
- Node V8.11.2 is not supported HOT 1
- command init crashes because of missing templates/next module HOT 1
- Error: ... please place the spec in component folder HOT 4
- Fix date-fns material date pickers in Percy example HOT 1
- Create example with Webpack 5 HOT 1
- Next.js plugin is treating the entire projectRoot as pages HOT 3
- Can't resolve 'readLine' HOT 1
- No tests found when using cypress open HOT 3
- webpack 5 and cypress-react-unit-test image assets
- [Question] Stubbing/Mocking redux hooks in mountHook HOT 4
- Conflicting preprocessors for component and BDD tests HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-react-unit-test.