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:
26
test/e2e-cypress/e2e/features/webhooks.cy.js
Normal file
26
test/e2e-cypress/e2e/features/webhooks.cy.js
Normal file
@@ -0,0 +1,26 @@
|
||||
describe("Render Webhooks Component", () => {
|
||||
describe("OpenAPI 3.1.x", () => {
|
||||
const baseUrl = "/?url=/documents/features/webhooks-openAPI31.yaml"
|
||||
it("should render a heading", () => {
|
||||
cy.visit(baseUrl)
|
||||
.get(".webhooks")
|
||||
.should("exist")
|
||||
.should("contains.text", "Webhooks")
|
||||
})
|
||||
it("should render an operation component", () => {
|
||||
cy.visit(baseUrl)
|
||||
.get(".webhooks #operations-webhooks-postnewPet > .opblock-summary")
|
||||
.should("exist")
|
||||
.should("contains.text", "POST")
|
||||
.should("contains.text", "newPet")
|
||||
})
|
||||
})
|
||||
describe("OpenAPI 3.0.x", () => {
|
||||
const baseUrl = "/?url=/documents/features/webhooks-openAPI31.yaml"
|
||||
it("should render nothing", () => {
|
||||
cy.visit(baseUrl)
|
||||
.get(".webhooks")
|
||||
.should("not.exist")
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user