Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ import './commands';

require('cypress-failed-log');

// Rather than processing all pending jobs at the end of each test which may sometimes lead to timeouts
// if there are a large number of time consuming jobs queued, we will process 3 before each test
// and process 3 after each test and each of these 3 will be individually to minimize the chances of
// server timeouts instead of one single long running process.
beforeEach(function() {
cy.runQueueJobs(null, false, true);
cy.runQueueJobs(null, false, true);
cy.runQueueJobs(null, false, true);
});

afterEach(function() {
cy.runQueueJobs();
cy.runQueueJobs(null, false, true);
cy.runQueueJobs(null, false, true);
cy.runQueueJobs(null, false, true);
});