fix: label models section as Schemas in OpenAPI 3 (via #5065)
* fix: label models section `Schemas` in OpenAPI 3 * Update swos-63.js
This commit is contained in:
14
test/e2e-cypress/tests/bugs/swos-63.js
Normal file
14
test/e2e-cypress/tests/bugs/swos-63.js
Normal file
@@ -0,0 +1,14 @@
|
||||
describe("SWOS-63: Schema/Model section labeling", () => {
|
||||
it("should render `Schemas` for OpenAPI 3", () => {
|
||||
cy
|
||||
.visit("/?url=/documents/petstore-expanded.openapi.yaml")
|
||||
.get("section.models > h4")
|
||||
.contains("Schemas")
|
||||
})
|
||||
it("should render `Models` for OpenAPI 2", () => {
|
||||
cy
|
||||
.visit("/?url=/documents/petstore.swagger.yaml")
|
||||
.get("section.models > h4")
|
||||
.contains("Models")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user