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
50 lines
1.3 KiB
JavaScript
Executable File
50 lines
1.3 KiB
JavaScript
Executable File
/**
|
|
* @prettier
|
|
*/
|
|
|
|
describe("Parameter with oneOf and anyOf keywords in OpenAPI 3.0.x", () => {
|
|
it("should render correct form fields", () => {
|
|
cy.visit("/?url=/documents/features/parameters-one-of-any-of-oas3.yaml")
|
|
.get("#operations-default-get_")
|
|
.click()
|
|
cy.get(".parameters-col_description")
|
|
.eq(1)
|
|
.find("select")
|
|
.should("exist")
|
|
.and("have.value", "ascending")
|
|
cy.get(".parameters-col_description")
|
|
.eq(2)
|
|
.find("input")
|
|
.should("exist")
|
|
.and("have.value", "test")
|
|
cy.get(".parameters-col_description")
|
|
.eq(3)
|
|
.find("textarea")
|
|
.should("exist")
|
|
.and("contain", '"eq": "active"')
|
|
})
|
|
})
|
|
|
|
describe("Parameter with oneOf and anyOf keywords in OpenAPI 3.1.0.", () => {
|
|
it("should render correct form fields", () => {
|
|
cy.visit("/?url=/documents/features/parameters-one-of-any-of-oas31.yaml")
|
|
.get("#operations-default-get_")
|
|
.click()
|
|
cy.get(".parameters-col_description")
|
|
.eq(1)
|
|
.find("select")
|
|
.should("exist")
|
|
.and("have.value", "ascending")
|
|
cy.get(".parameters-col_description")
|
|
.eq(2)
|
|
.find("input")
|
|
.should("exist")
|
|
.and("have.value", "test")
|
|
cy.get(".parameters-col_description")
|
|
.eq(3)
|
|
.find("textarea")
|
|
.should("exist")
|
|
.and("contain", '"eq": "active"')
|
|
})
|
|
})
|