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
17 lines
434 B
JavaScript
Executable File
17 lines
434 B
JavaScript
Executable File
/**
|
|
* @prettier
|
|
*/
|
|
|
|
describe("Response examples", () => {
|
|
it("should render a generated example when an empty examples object is provided", () => {
|
|
cy.visit("/?url=/documents/features/response-empty-examples-object.yaml")
|
|
.get("#operations-TEST-test")
|
|
.click()
|
|
.get(".example.microlight")
|
|
.should("exist")
|
|
.contains("{}")
|
|
.get(".examples-select-element")
|
|
.should("not.exist")
|
|
})
|
|
})
|