gifted-greece-75181
01/25/2023, 6:19 PMimport { defineConfig } from 'cypress'
export default defineConfig({
chromeWebSecurity: false,
projectId: 'e1suq1',
fixturesFolder: 'tests/e2e/fixtures',
screenshotsFolder: 'tests/e2e/screenshots',
videosFolder: 'tests/e2e/videos',
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./tests/e2e/plugins/index.js')(on, config)
},
specPattern: 'tests/e2e/specs/**/*.{js,jsx,ts,tsx}',
supportFile: 'tests/e2e/support/index.js',
},
watchForFileChanges: false,
viewportWidth: 1024
})
With Cypress 10.8.0 all my test were passing fine. With upgrade to version 12, I am getting CORS errors - but only in Cypress. (see screenshot)
When I test my app outside Cypress (using it in any browser), everything works just fine.
I tried to change interceptor backend calls to http://0.0.0.0:3000 and it worked, but that raised issues with cookies (as 0.0.0.0 is not localhost).
I am stuck. Is there way to e2e test on this setup?gifted-greece-75181
01/30/2023, 6:42 PM