Browse Source
Merge pull request #5909 from Budibase/cypress-testing
Adding Retries for Cypress tests
master
Mitch-Budibase
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
1 deletions
-
packages/builder/cypress.json
-
packages/builder/cypress/support/commands.js
|
|
@ -7,5 +7,9 @@ |
|
|
"WORKER_PORT": "4200", |
|
|
"WORKER_PORT": "4200", |
|
|
"JWT_SECRET": "test", |
|
|
"JWT_SECRET": "test", |
|
|
"HOST_IP": "" |
|
|
"HOST_IP": "" |
|
|
|
|
|
}, |
|
|
|
|
|
"retries": { |
|
|
|
|
|
"runMode": 2, |
|
|
|
|
|
"openMode": 0 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -573,7 +573,7 @@ Cypress.Commands.add("addDatasourceConfig", (datasource, skipFetch) => { |
|
|
cy.get(".spectrum-Button") |
|
|
cy.get(".spectrum-Button") |
|
|
.contains("Save and fetch tables") |
|
|
.contains("Save and fetch tables") |
|
|
.click({ force: true }) |
|
|
.click({ force: true }) |
|
|
cy.wait(1000) |
|
|
cy.wait(3000) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|