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:
parent
10a80b443f
commit
bb5799dbd9
|
@ -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.wait(1000)
|
||||||
|
cy.get(".stats").within(() => {
|
||||||
cy.get(".spectrum-FieldLabel")
|
cy.get(".spectrum-FieldLabel")
|
||||||
.contains("Status")
|
.eq(0)
|
||||||
.children()
|
|
||||||
.should("contain", 200)
|
.should("contain", 200)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue