Files
swagger-ui/test/e2e-cypress/e2e/security/apikey.cy.js
2023-09-07 10:00:03 +02:00

14 lines
494 B
JavaScript

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