chore(deps-dev): update cypress to v12 (#8889)
This update required changing the configuration and test directory structure. Some tests needed to be amended as well to compensate for new Cypress APIs.
This commit is contained in:
15
test/e2e-cypress/e2e/features/oas3-badge.cy.js
Normal file
15
test/e2e-cypress/e2e/features/oas3-badge.cy.js
Normal file
@@ -0,0 +1,15 @@
|
||||
describe("OpenAPI 3.x.y Badge", () => {
|
||||
it("should display light green badge with version indicator for OpenAPI 3.0.x", () => {
|
||||
cy.visit("/?url=/documents/petstore-expanded.openapi.yaml")
|
||||
.get("#swagger-ui")
|
||||
.get("pre.version")
|
||||
.contains("OAS 3.0")
|
||||
})
|
||||
|
||||
it("should display light green badge with version indicator for OpenAPI 3.1.0", () => {
|
||||
cy.visit("/?url=/documents/features/info-openAPI31.yaml")
|
||||
.get("#swagger-ui")
|
||||
.get("pre.version")
|
||||
.contains("OAS 3.1")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user