Component Testing: Nextjs - Cannot GET /__cypress/src/index.html #22315
-
Getting this message - Cannot GET /__cypress/src/index.html when trying run button.cy.jsx component Testing. What need to do? Framework: Nextjs - node_module css in compoent.js -> import "componentlib/dist/lib/css/global.css"; ERROR in ./node_modules/componentlib/dist/lib/css/global.css component: {
devServer: {
framework: "next",
bundler: "webpack",
},
}, Cypress Version: 10.1.0 (stable)
System Platform: darwin (21.3.0) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It's fix now. I follow this step
|
Beta Was this translation helpful? Give feedback.
-
Since Cypress 10 it might also be when you have your files in a different location, then you now also need to specify |
Beta Was this translation helpful? Give feedback.
It's fix now. I follow this step
"next-global-css": "^1.3.1"
and follows their usage.src/cy-setup/global.css
and import lib css in global.css file.