Files
swagger-ui/test/e2e-cypress/e2e/security/apikey.cy.js
kyy f464ba2d31
Some checks failed
Node.js CI / build (push) Failing after 2s
Node.js CI / e2e-tests (+(a11y|security|bugs)/**/*cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/!(o|d|m)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/+(o|d)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/m*.cy.js) (push) Failing after 2s
CodeQL / Analyze (javascript) (push) Failing after 2m49s
Security scan for docker image / build (push) Failing after 42s
Update swagger-ui
2025-06-24 13:40:26 +09:00

14 lines
494 B
JavaScript
Executable File

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