feat(a11y): provide additional context for authorization and logout button (#8999)
Refs #8998 Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
This commit is contained in:
13
test/e2e-cypress/e2e/security/apikey.cy.js
Normal file
13
test/e2e-cypress/e2e/security/apikey.cy.js
Normal file
@@ -0,0 +1,13 @@
|
||||
describe("ApiKey Authorization", function() {
|
||||
it("should have generic description for authorization button", () => {
|
||||
cy
|
||||
.visit("/?url=/documents/petstore.swagger.yaml")
|
||||
.get(".btn.authorize") // open authorization dialog
|
||||
.click()
|
||||
.get(".modal-ux-content > :nth-child(2)") // only deal with api_key for this test
|
||||
.within(() => {
|
||||
cy.get(".auth-btn-wrapper .authorize")
|
||||
.should("have.attr", "aria-label", "Apply credentials")
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user