Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

23 rader
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. })