Merge pull request #7669 from Budibase/Cypress-Smoke
Cypress: Smoke: autoScreensUI
This commit is contained in:
commit
5313d0d0ff
|
@ -639,7 +639,9 @@ Cypress.Commands.add(
|
||||||
cy.get(".spectrum-Button").contains("Add screen").click({ force: true })
|
cy.get(".spectrum-Button").contains("Add screen").click({ force: true })
|
||||||
cy.get(".spectrum-Dialog-grid").within(() => {
|
cy.get(".spectrum-Dialog-grid").within(() => {
|
||||||
cy.get("[data-cy='autogenerated-screens']").click()
|
cy.get("[data-cy='autogenerated-screens']").click()
|
||||||
|
cy.intercept("**/api/datasources").as("autoScreens")
|
||||||
cy.get(".spectrum-Button").contains("Continue").click({ force: true })
|
cy.get(".spectrum-Button").contains("Continue").click({ force: true })
|
||||||
|
cy.wait("@autoScreens")
|
||||||
})
|
})
|
||||||
cy.get("[data-cy='autogenerated-screens']").should("not.exist")
|
cy.get("[data-cy='autogenerated-screens']").should("not.exist")
|
||||||
cy.get("[data-cy='data-source-modal']", { timeout: 10000 }).within(() => {
|
cy.get("[data-cy='data-source-modal']", { timeout: 10000 }).within(() => {
|
||||||
|
|
Loading…
Reference in New Issue