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:
kyle
2018-12-07 20:29:35 +01:00
committed by GitHub
parent b84a0fea04
commit 91b1becc65
3 changed files with 18 additions and 3 deletions

View 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")
})
})