fix: Added an error handling to reduce the number of errors (flaky tests) in integration tests

Signed-off-by: kushthedude <kushthedude@gmail.com>

Co-authored-by: Florian Giroud <6267288+fgiroud@users.noreply.github.com>
This commit is contained in:
Kush Trivedi 2021-04-10 23:07:51 +05:30 committed by GitHub
parent 72d8bcfcfa
commit 8369a10cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,11 @@ Cypress.Commands.add('doCreateProjectThroughUserInterface', () => {
.contains('Create Project »')
.click();
cy.get('#create-project-progress-message').contains('Done.');
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test due to the uncaught exception caused by the window failure
return false;
});
// workaround to ensure project is loaded
// cypress does not support window.location = ...