4943.js 572 B

123456789101112131415161718192021
  1. describe("#4943: XML example not rendered correctly with oneOf", () => {
  2. it("should render integer property correctly", () => {
  3. cy
  4. .visit("/?url=/documents/bugs/4943.yaml")
  5. .get("#operations-Test-postTest")
  6. .click()
  7. .get(".microlight")
  8. .contains("<b>0</b>")
  9. })
  10. it("should render oneOf property correctly", () => {
  11. cy
  12. .visit("/?url=/documents/bugs/4943.yaml")
  13. .get("#operations-Test-postTest")
  14. .click()
  15. .get(".try-out__btn")
  16. .click()
  17. .get(".microlight")
  18. .contains("<c>\n\t</c>")
  19. })
  20. })