Browse Source

Adding and increasing wait times surrounding renameAnApplication.spec.js

Passes locally but looks like a timing issue when run against the CI.

Adding and increasing wait times to hopefully combat this. I will extend further if unsuccessful
master
Mitch-Budibase 5 years ago
parent
commit
5525859ba7
  1. 1
      packages/builder/cypress/integration/renameAnApplication.spec.js
  2. 2
      packages/builder/cypress/support/commands.js

1
packages/builder/cypress/integration/renameAnApplication.spec.js

@ -92,6 +92,7 @@ filterTests(['all'], () => {
})
const renameApp = (originalName, changedName, published, noName) => {
cy.wait(2000)
cy.searchForApplication(originalName)
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
.its("body")

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

@ -342,7 +342,7 @@ Cypress.Commands.add("addCustomSourceOptions", totalOptions => {
//Filters visible with 1 or more
Cypress.Commands.add("searchForApplication", appName => {
cy.wait(1000)
cy.wait(2000)
// Searches for the app
cy.get(".filter").then(() => {
cy.get(".spectrum-Textfield").within(() => {

Loading…
Cancel
Save