fix(json-schema-2020-12): expand deeply all Schema Objects and complex keywords (#9581)

Refs #9508
Supersedes #9510

Co-authored-by: Julien Bourges <julien.bourges@actility.com>
This commit is contained in:
Oliwia Rogala
2024-02-14 10:16:34 +01:00
committed by GitHub
parent 0115054aa3
commit 0aed3bc831
10 changed files with 230 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
/**
* @prettier
*/
describe("JSON Schema 2020-12 complex keywords expansion", () => {
it("should deeply expand all Schemas and complex keywords", () => {
cy.visit("/pages/json-schema-2020-12-expansion/").then(
() => {
cy.get(".json-schema-2020-12-accordion")
.find(".json-schema-2020-12-accordion__icon--collapsed")
.should("not.exist")
cy.contains("anyOf1-p1-p2-p1").should("exist")
cy.contains("oneOf1-p1-p2-p1").should("exist")
cy.contains("Prefix items").should("exist")
cy.contains("exampleDef").should("exist")
cy.contains("https://json-schema.org/draft/2020-12/vocab/core").should("exist")
}
)
})
})