forked from swagger-api/swagger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(a11y): provide additional context for authorization and logout b…
…utton (swagger-api#8999) Refs swagger-api#8998 Co-authored-by: Vladimír Gorej <[email protected]>
- Loading branch information
Showing
4 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") | ||
}) | ||
}) | ||
}) |