From 5bbd3e71bda5e917bcbc5d24e4d39777332aec47 Mon Sep 17 00:00:00 2001 From: Tim Lai Date: Mon, 1 Jun 2020 17:14:45 -0700 Subject: [PATCH] fix: bugs/4641 use wait on route alias (#6048) --- test/e2e-cypress/tests/bugs/4641.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e-cypress/tests/bugs/4641.js b/test/e2e-cypress/tests/bugs/4641.js index f7bcb576..1a4bb03c 100644 --- a/test/e2e-cypress/tests/bugs/4641.js +++ b/test/e2e-cypress/tests/bugs/4641.js @@ -45,7 +45,7 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", () .get("#operations-default-get_4641_1") // expand the route details onClick .click() .within(clickTryItOutAndExecute) - .get("@request") + .wait("@request") .its("request") .then((req) => { expect(req.headers, "request headers").to.have.property("api_key_1", "my_api_key") @@ -66,7 +66,7 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", () .get("#operations-default-get_4641_1") // expand the route details onClick .click() .within(clickTryItOutAndExecute) - .get("@request") + .wait("@request") .its("request") .then((req) => { expect(req.headers, "request headers").not.to.have.property("api_key_1") @@ -89,7 +89,7 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", () .get("#operations-default-get_4641_2") // expand the route details onClick .click() .within(clickTryItOutAndExecute) - .get("@request") + .wait("@request") .its("request") .then((req) => { expect(req.headers, "request headers").not.to.have.property("api_key_1")