Pārlūkot izejas kodu

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

Ref #6001
bubble
Tim Lai pirms 4 gadiem
committed by GitHub
vecāks
revīzija
add5753da4
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. +7
    -7
      test/e2e-cypress/tests/bugs/4641.js

+ 7
- 7
test/e2e-cypress/tests/bugs/4641.js Parādīt failu

@@ -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")
})
})
})

Notiek ielāde…
Atcelt
Saglabāt