test(cypress): add wait time for bugs/5043 to resolve spec (#7769)

This commit is contained in:
Tim Lai
2022-01-18 15:34:12 -08:00
committed by GitHub
parent 627cb98822
commit affd4b9e7e

View File

@@ -1,9 +1,8 @@
import repeat from "lodash/repeat"
describe("#5043: path-level $ref path items should inherit global consumes/produces", () => {
it("should render consumes options correctly", () => {
cy
.visit("/?url=/documents/bugs/5043/swagger.yaml")
.wait(500) // HACK: wait for external spec ref to resolve (swagger.yaml->status.yaml)
.get("#operations-pet-findPetsByStatus")
.click()
.get(".try-out__btn")
@@ -18,6 +17,7 @@ describe("#5043: path-level $ref path items should inherit global consumes/produ
it("should render produces options correctly", () => {
cy
.visit("/?url=/documents/bugs/5043/swagger.yaml")
.wait(500) // HACK: wait for external spec ref to resolve (swagger.yaml->status.yaml)
.get("#operations-pet-findPetsByStatus")
.click()
.get(".try-out__btn")