From 05b7e3c5aa1e0061081f2b56b1a902fe1f2f6e9e Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Fri, 18 Feb 2022 18:46:58 +0000 Subject: [PATCH] Updating datasourceWizard & revertApp datasourceWizard -Making test env only based on datasource usage revertApp -Updating a click function --- .../cypress/integration/datasources/datasourceWizard.spec.js | 4 +++- packages/builder/cypress/integration/revertApp.spec.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/cypress/integration/datasources/datasourceWizard.spec.js b/packages/builder/cypress/integration/datasources/datasourceWizard.spec.js index 0eefb750ac..1bee7b5ec1 100644 --- a/packages/builder/cypress/integration/datasources/datasourceWizard.spec.js +++ b/packages/builder/cypress/integration/datasources/datasourceWizard.spec.js @@ -2,6 +2,7 @@ import filterTests from "../../support/filterTests" filterTests(['all'], () => { context("Datasource Wizard", () => { + if (Cypress.env("TEST_ENV")) { before(() => { cy.login() cy.createTestApp() @@ -36,6 +37,7 @@ filterTests(['all'], () => { cy.wait("@datasourceConnection") cy.get("@datasourceConnection").its('response.body') .should('have.property', 'status', 500) - }) + }) + } }) }) diff --git a/packages/builder/cypress/integration/revertApp.spec.js b/packages/builder/cypress/integration/revertApp.spec.js index c8c20ce366..c64d19f230 100644 --- a/packages/builder/cypress/integration/revertApp.spec.js +++ b/packages/builder/cypress/integration/revertApp.spec.js @@ -54,7 +54,7 @@ filterTests(['smoke', 'all'], () => { it("should enter incorrect app name when reverting", () => { // Click Revert cy.get(".toprightnav").within(() => { - cy.get(".spectrum-Icon").eq(1).click() + cy.get(".spectrum-Icon").eq(1).click({ force: true }) }) // Enter incorrect app name cy.get(".spectrum-Dialog-grid").within(() => {