1
0
Fork 0
mirror of synced 2024-07-19 21:26:22 +12:00

Merge pull request #4875 from Budibase/cypress-testing

Updating REST Test
This commit is contained in:
Mitch-Budibase 2022-03-10 14:20:47 +00:00 committed by GitHub
commit baa46e5251

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)
})
})
})
})