From f5b0ebeec1231982a0a5a53fd4a2d53bdf3a95b7 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Thu, 10 Mar 2022 13:46:30 +0000 Subject: [PATCH] Updating REST Test A bit of a change of structure for how the test runs -Also adding a wait as the test seems to be timing out on occasion --- .../builder/cypress/integration/datasources/rest.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/builder/cypress/integration/datasources/rest.spec.js b/packages/builder/cypress/integration/datasources/rest.spec.js index 58ba74795a..a15487c01b 100644 --- a/packages/builder/cypress/integration/datasources/rest.spec.js +++ b/packages/builder/cypress/integration/datasources/rest.spec.js @@ -36,10 +36,12 @@ filterTests(["smoke", "all"], () => { // createRestQuery confirms query creation cy.createRestQuery("GET", restUrl, "/breweries") // Confirm status code response within REST datasource - cy.get(".spectrum-FieldLabel") - .contains("Status") - .children() + cy.wait(1000) + cy.get(".stats").within(() => { + cy.get(".spectrum-FieldLabel") + .eq(0) .should("contain", 200) + }) }) }) })