1
0
Fork 0
mirror of synced 2024-06-03 02:55:14 +12:00

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 448e57a5de
commit f5b0ebeec1

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.get(".spectrum-FieldLabel")
.contains("Status")
.children()
cy.wait(1000)
cy.get(".stats").within(() => {
cy.get(".spectrum-FieldLabel")
.eq(0)
.should("contain", 200)
})
})
})
})