test(cypress): add wait time for bugs/5043 to resolve spec (#7769)
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
import repeat from "lodash/repeat"
|
|
||||||
|
|
||||||
describe("#5043: path-level $ref path items should inherit global consumes/produces", () => {
|
describe("#5043: path-level $ref path items should inherit global consumes/produces", () => {
|
||||||
it("should render consumes options correctly", () => {
|
it("should render consumes options correctly", () => {
|
||||||
cy
|
cy
|
||||||
.visit("/?url=/documents/bugs/5043/swagger.yaml")
|
.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")
|
.get("#operations-pet-findPetsByStatus")
|
||||||
.click()
|
.click()
|
||||||
.get(".try-out__btn")
|
.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", () => {
|
it("should render produces options correctly", () => {
|
||||||
cy
|
cy
|
||||||
.visit("/?url=/documents/bugs/5043/swagger.yaml")
|
.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")
|
.get("#operations-pet-findPetsByStatus")
|
||||||
.click()
|
.click()
|
||||||
.get(".try-out__btn")
|
.get(".try-out__btn")
|
||||||
|
|||||||
Reference in New Issue
Block a user