This update required changing the configuration and test directory structure. Some tests needed to be amended as well to compensate for new Cypress APIs.
20 lines
606 B
JavaScript
20 lines
606 B
JavaScript
describe("#5164: multipart property initial values", () => {
|
|
it("should provide correct initial values for objects and arrays", () => {
|
|
const correctObjectValue = JSON.stringify({
|
|
"one": "abc",
|
|
"two": 123
|
|
}, null, 2)
|
|
|
|
cy
|
|
.visit("?url=/documents/bugs/5164.yaml")
|
|
.get("#operations-default-post_")
|
|
.click()
|
|
.get(".try-out__btn")
|
|
.click()
|
|
.get(`.parameters[data-property-name="first"] textarea`)
|
|
.should("have.value", correctObjectValue)
|
|
.get(`.parameters[data-property-name="second"] input`)
|
|
.should("have.value", "hi")
|
|
})
|
|
})
|