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
31 lines
799 B
JavaScript
Executable File
31 lines
799 B
JavaScript
Executable File
describe("MutualTLS Authorization", () => {
|
|
|
|
it("should open authorization popup", () => {
|
|
cy.visit(
|
|
"/?url=/documents/security/mutual-tls.yaml"
|
|
)
|
|
.get("button.authorize")
|
|
.click()
|
|
.get(".auth-container h4")
|
|
.contains("mutual (mutualTLS)")
|
|
})
|
|
it("should have description given by user", () => {
|
|
cy.visit(
|
|
"/?url=/documents/security/mutual-tls.yaml"
|
|
)
|
|
.get("button.authorize")
|
|
.click()
|
|
.get(".auth-container p:nth-of-type(2)")
|
|
.contains("Mutual TLS description")
|
|
})
|
|
it("should not display Authorize or Logout buttons", () => {
|
|
cy.visit(
|
|
"/?url=/documents/security/mutual-tls.yaml"
|
|
)
|
|
.get("button.authorize")
|
|
.click()
|
|
.get(".auth-button-wrapper")
|
|
.should("not.exist")
|
|
})
|
|
})
|