Browse Source

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
master
Mitch-Budibase 5 years ago
parent
commit
f5b0ebeec1
  1. 8
      packages/builder/cypress/integration/datasources/rest.spec.js

8
packages/builder/cypress/integration/datasources/rest.spec.js

@ -36,10 +36,12 @@ filterTests(["smoke", "all"], () => {
// createRestQuery confirms query creation // createRestQuery confirms query creation
cy.createRestQuery("GET", restUrl, "/breweries") cy.createRestQuery("GET", restUrl, "/breweries")
// Confirm status code response within REST datasource // Confirm status code response within REST datasource
cy.get(".spectrum-FieldLabel") cy.wait(1000)
.contains("Status") cy.get(".stats").within(() => {
.children() cy.get(".spectrum-FieldLabel")
.eq(0)
.should("contain", 200) .should("contain", 200)
})
}) })
}) })
}) })

Loading…
Cancel
Save