You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
785 B

  1. describe("#5072: x-www-form-urlencoded request body input when `properties` is missing", () => {
  2. it("should provide a JSON input for an empty object schema", () => {
  3. cy
  4. .visit("?url=/documents/bugs/5072/empty.yaml")
  5. .get("#operations-default-postObject")
  6. .click()
  7. .get(".try-out__btn")
  8. .click()
  9. .get(`.opblock-section-request-body textarea`)
  10. .should("have.value", "{}")
  11. })
  12. it("should provide a JSON input for an additionalProperties object schema", () => {
  13. cy
  14. .visit("?url=/documents/bugs/5072/additional.yaml")
  15. .get("#operations-default-postObject")
  16. .click()
  17. .get(".try-out__btn")
  18. .click()
  19. .get(`.opblock-section-request-body textarea`)
  20. .contains(`"additionalProp1": "string"`)
  21. })
  22. })