@@ -48,8 +48,8 @@ describe("#4641: The Logout button in Authorize popup not clearing API Key", ()
|
|||||||
.within(clickTryItOutAndExecute)
|
.within(clickTryItOutAndExecute)
|
||||||
.get("@request")
|
.get("@request")
|
||||||
.its("request")
|
.its("request")
|
||||||
.should(request => {
|
.then((req) => {
|
||||||
expect(request.headers).to.have.property("api_key_1", "my_api_key")
|
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)
|
.within(clickTryItOutAndExecute)
|
||||||
.get("@request")
|
.get("@request")
|
||||||
.its("request")
|
.its("request")
|
||||||
.should(request => {
|
.then((req) => {
|
||||||
expect(request.headers).not.to.have.property("api_key_1")
|
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)
|
.within(clickTryItOutAndExecute)
|
||||||
.get("@request")
|
.get("@request")
|
||||||
.its("request")
|
.its("request")
|
||||||
.should(request => {
|
.then((req) => {
|
||||||
expect(request.headers).not.to.have.property("api_key_1")
|
expect(req.headers, "request headers").not.to.have.property("api_key_1")
|
||||||
expect(request.headers).to.have.property("api_key_2", "my_second_api_key")
|
expect(req.headers, "request headers").to.have.property("api_key_2", "my_second_api_key")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user