Skip to content

Commit

Permalink
fix: bugs/4641 use wait on route alias (#6048)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai authored Jun 2, 2020
1 parent a371ba1 commit 5bbd3e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e-cypress/tests/bugs/4641.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 5bbd3e7

Please sign in to comment.