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
35 lines
1.2 KiB
JavaScript
Executable File
35 lines
1.2 KiB
JavaScript
Executable File
describe("Response tab elements", () => {
|
|
describe("ModelExample within Operation", () => {
|
|
it("should render Example tabpanel by default", () => {
|
|
cy
|
|
.visit("/?url=/documents/petstore-expanded.openapi.yaml")
|
|
.get("#operations-default-addPet")
|
|
.click()
|
|
.get("div[data-name=examplePanel]")
|
|
.first()
|
|
.should("have.attr", "aria-hidden", "false")
|
|
})
|
|
it("should click Schema tab button and render Schema tabpanel for OpenAPI 3", () => {
|
|
cy
|
|
.visit("/?url=/documents/petstore-expanded.openapi.yaml")
|
|
.get("#operations-default-addPet")
|
|
.click()
|
|
.get("button.tablinks[data-name=model]")
|
|
.first()
|
|
.click()
|
|
.get("div[data-name=modelPanel]")
|
|
.first()
|
|
.should("have.attr", "aria-hidden", "false")
|
|
})
|
|
it("should click Model tab button and render Model tabpanel for OpenAPI 2", () => {
|
|
cy
|
|
.visit("/?url=/documents/petstore.swagger.yaml")
|
|
.get("#operations-pet-addPet")
|
|
.click()
|
|
.get("button.tablinks[data-name=model]")
|
|
.click()
|
|
.get("div[data-name=modelPanel]")
|
|
.should("have.attr", "aria-hidden", "false")
|
|
})
|
|
})
|
|
}) |