fix: expand model if depth <= defaultModelExpandDepth (#8186)
This commit is contained in:
@@ -42,6 +42,7 @@ function ModelCollapseTest(baseUrl, urlFragment) {
|
||||
.get("#model-User .model-box .model .inner-object")
|
||||
.should("exist")
|
||||
.get("#model-User .model-box .model-box-control")
|
||||
.first()
|
||||
.click()
|
||||
.get("#model-User .model-box .model .inner-object")
|
||||
.should("not.exist")
|
||||
|
||||
@@ -15,9 +15,17 @@ describe("Parse YAML as YAML@1.2 with json_schema for all JSON-supported types",
|
||||
// Responses -> schema tab
|
||||
.get(".model-example > .tab > :nth-child(2)")
|
||||
.click()
|
||||
.get(":nth-child(1) > :nth-child(2) > .model > :nth-child(1) > .prop > .property") // first element, without-quotes
|
||||
.get(":nth-child(1) > :nth-child(2) > .model > :nth-child(1)")
|
||||
.click()
|
||||
.get(
|
||||
":nth-child(1) > :nth-child(2) > .model > :nth-child(1) > .prop > .property"
|
||||
) // first element, without-quotes
|
||||
.should("have.text", "example: 1999-11-31")
|
||||
.get(":nth-child(2) > :nth-child(2) > .model > :nth-child(1) > .prop > .property") // second element, with quotes
|
||||
.get(":nth-child(2) > :nth-child(2) > .model > :nth-child(1)")
|
||||
.click()
|
||||
.get(
|
||||
":nth-child(2) > :nth-child(2) > .model > :nth-child(1) > .prop > .property"
|
||||
) // second element, with quotes
|
||||
.should("have.text", "example: 1999-12-31")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user