Open Albertbol opened 4 years ago
Well its was error in i18n middleware: before:
locale = req.headers['accept-language']
.split(',')[0]
.toLocaleLowerCase()
.substring(0, 2)
after:
if (req.headers['accept-language']) {
locale = req.headers['accept-language']
.split(',')[0]
.toLocaleLowerCase()
.substring(0, 2)
}
So basically it means that it's unhandled in cypress and not shown in any logs. Any mistake in code will break cypress from the loading the website.
Hey, thanks for developing this package!
Can you please help me out to figure out the problem I'm having?
I did exactly the same steps but I'm getting always this error:
Obviously, I can open the homepage, but the test always fails. ( I spin up nuxt before running cypress open )
cypress.json:
cypress/integration/test.spec.js:
cypress/plugins/index.js:
Allway getting this as the result:
I can open the URL in a different tab and the home page opens correctly.
devDependencies:
If I will start without nuxt cypress open, I will get this: Which means that actually, nuxt is running correctly on localhost:3000 on my previous problem, but why it's not reaching the home page 🤔