未验证 提交 add5753d 编写于 作者: T Tim Lai 提交者: GitHub

test: improve reliability of /bugs/4641 (#6013)

Ref #6001
上级 c845498f
......@@ -48,8 +48,8 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", ()
.within(clickTryItOutAndExecute)
.get("@request")
.its("request")
.should(request => {
expect(request.headers).to.have.property("api_key_1", "my_api_key")
.then((req) => {
expect(req.headers, "request headers").to.have.property("api_key_1", "my_api_key")
})
})
......@@ -68,8 +68,8 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", ()
.within(clickTryItOutAndExecute)
.get("@request")
.its("request")
.should(request => {
expect(request.headers).not.to.have.property("api_key_1")
.then((req) => {
expect(req.headers, "request headers").not.to.have.property("api_key_1")
})
})
......@@ -90,9 +90,9 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", ()
.within(clickTryItOutAndExecute)
.get("@request")
.its("request")
.should(request => {
expect(request.headers).not.to.have.property("api_key_1")
expect(request.headers).to.have.property("api_key_2", "my_second_api_key")
.then((req) => {
expect(req.headers, "request headers").not.to.have.property("api_key_1")
expect(req.headers, "request headers").to.have.property("api_key_2", "my_second_api_key")
})
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册