fix: flaky create_project multiple url test (#3767)

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-03-30 13:32:37 +05:30 committed by GitHub
parent 68b148d775
commit 1f9d1252a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ Cypress.Commands.add('doCreateProjectThroughUserInterface', () => {
// workaround to ensure project is loaded
// cypress does not support window.location = ...
cy.get('h2', { timeout: 6000 }).contains('HTTP ERROR 404');
cy.get('h2').should('to.contain', 'HTTP ERROR 404');
cy.location().should((location) => {
expect(location.href).contains(
Cypress.env('OPENREFINE_URL') + '/__/project?'