AutoScreens Test update

increasing wait time for createAutogeneratedScreens command
-associated with auto screens tests
This commit is contained in:
Mitch-Budibase 2022-01-21 18:40:32 +00:00
parent 5c972f4510
commit ca8eaf0df3
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ filterTests(['smoke', 'all'], () => {
// Create autogenerated screens from the internal table // Create autogenerated screens from the internal table
cy.createAutogeneratedScreens(["Cypress Tests"]) cy.createAutogeneratedScreens(["Cypress Tests"])
// Confirm screens have been auto generated // Confirm screens have been auto generated
cy.get(".nav-items-container").contains("cypress-tests").click() cy.get(".nav-items-container").contains("cypress-tests").click({ force: true })
cy.get(".nav-items-container").should('contain', 'cypress-tests/:id') cy.get(".nav-items-container").should('contain', 'cypress-tests/:id')
.and('contain', 'cypress-tests/new/row') .and('contain', 'cypress-tests/new/row')
}) })
@ -24,7 +24,7 @@ filterTests(['smoke', 'all'], () => {
// Create autogenerated screens from the internal tables // Create autogenerated screens from the internal tables
cy.createAutogeneratedScreens([initialTable, secondTable]) cy.createAutogeneratedScreens([initialTable, secondTable])
// Confirm screens have been auto generated // Confirm screens have been auto generated
cy.get(".nav-items-container").contains("cypress-tests").click() cy.get(".nav-items-container").contains("cypress-tests").click({ force: true })
// Previously generated tables are suffixed with numbers - as expected // Previously generated tables are suffixed with numbers - as expected
cy.get(".nav-items-container").should('contain', 'cypress-tests-2/:id') cy.get(".nav-items-container").should('contain', 'cypress-tests-2/:id')
.and('contain', 'cypress-tests-2/new/row') .and('contain', 'cypress-tests-2/new/row')

View File

@ -264,7 +264,7 @@ Cypress.Commands.add("createAutogeneratedScreens", screenNames => {
cy.get(".item").contains(screenNames[i]).click() cy.get(".item").contains(screenNames[i]).click()
} }
cy.get(".spectrum-Button").contains("Add Screens").click({ force: true }) cy.get(".spectrum-Button").contains("Add Screens").click({ force: true })
cy.wait(2000) cy.wait(4000)
}) })
Cypress.Commands.add("addRow", values => { Cypress.Commands.add("addRow", values => {