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 51s
22 lines
675 B
JavaScript
Executable File
22 lines
675 B
JavaScript
Executable File
describe("Try it out enabled configuration", () => {
|
|
it("should enable the try it out section when true", () => {
|
|
|
|
cy
|
|
.visit("?tryItOutEnabled=true&url=/documents/features/try-it-out-enabled.yaml")
|
|
.get("#operations-default-get_")
|
|
.click()
|
|
.get(".try-out__btn")
|
|
.should("have.text","Cancel")
|
|
})
|
|
|
|
it("should disable the try it out section when false", () => {
|
|
|
|
cy
|
|
.visit("?tryItOutEnabled=false&url=/documents/features/try-it-out-enabled.yaml")
|
|
.get("#operations-default-get_")
|
|
.click()
|
|
.get(".try-out__btn")
|
|
.should("have.text","Try it out ")
|
|
})
|
|
})
|
|
|