tracim / tracim

Threads, files and pages with status and full history. All in the same place.
https://tracim.fr/
Other
211 stars 37 forks source link

Cypress Functionnal test fails with error related to cross origin error #1727

Open Skylsmoi opened 5 years ago

Skylsmoi commented 5 years ago

Bug description & symptom

Cypress functional tests fails with errors related to cross origin domain

Diagnostic

It happens on a recent test that I have commited on a branch here https://github.com/tracim/tracim/commit/7aec9363e6986133ae195f3c3cbb9b85b8db737e

It seems to be a known issue of cypress and chrome. See:

My test is doing a cy.visit() with a relative url. So cross origin issues should not appear since it is on the same domain.

Expected

Test should not fail with this error

How to reproduce

This fail seems random. It was random on my local tests and it seems to be the same by the peoples having the same issue on the github issues.

Impacted components

Functional test cypress only

Extra information

This issue is to keep information about the solving of this issue

Skylsmoi commented 5 years ago

To fix it, a solution seems to be to follow this comment https://github.com/cypress-io/cypress/issues/1951#issuecomment-465800679