From affd4b9e7eae559696d807aca11f7816b84b1b20 Mon Sep 17 00:00:00 2001 From: Tim Lai Date: Tue, 18 Jan 2022 15:34:12 -0800 Subject: [PATCH] test(cypress): add wait time for bugs/5043 to resolve spec (#7769) --- test/e2e-cypress/tests/bugs/5043.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e-cypress/tests/bugs/5043.js b/test/e2e-cypress/tests/bugs/5043.js index d0f2361c..6bd688dd 100644 --- a/test/e2e-cypress/tests/bugs/5043.js +++ b/test/e2e-cypress/tests/bugs/5043.js @@ -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")