Browse Source

Merge pull request #5909 from Budibase/cypress-testing

Adding Retries for Cypress tests
master
Mitch-Budibase 4 years ago
committed by GitHub
parent
commit
84157ed7b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/builder/cypress.json
  2. 2
      packages/builder/cypress/support/commands.js

4
packages/builder/cypress.json

@ -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
} }
} }

2
packages/builder/cypress/support/commands.js

@ -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)
}) })
} }
}) })

Loading…
Cancel
Save