Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): Fix cypress flakiness on CI by slowing down test setup (#523
) ## Problem Despite several attempts to improve the situation (see PRs #501, #504, #505, #507, #508, #510, #513, #520, #521, #522), Cypress tests are still flaky: they timeout for random reasons. ## Hypothesis This timeout could be caused by the fact that: - some XHR requests (e.g. to `/api/notif` to fetch notifications, and Deezer) may never respond => `onLoad` is never triggered - when a new test starts, we call `/testing/reset` to refresh the DB, which can cause pending DB queries from never resolving See #520 (comment). ## Proposed solution - wait for Openwhyd server to be up and reset before running tests - intercept and mock flaky XHR requests - fail faster when test steps are hanging for too long - reduce the amount of resources to load: fonts
- Loading branch information
1 parent
cf051e5
commit b9c8707
Showing
5 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters