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
This commit is contained in:
Mitch-Budibase 2022-03-10 13:46:30 +00:00
parent 10a80b443f
commit bb5799dbd9
1 changed files with 5 additions and 3 deletions

View File

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