6442.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. describe("#6442: 'Examples' keyword definitions can not be rendered as xml", () => {
  2. it("should render response examples accourdingly to content-type xml", () => {
  3. const xmlIndicator = "<x>should be xml</x>"
  4. cy
  5. .visit("?url=/documents/bugs/6442.yaml")
  6. .get("#operations-default-xmlTest")
  7. .click()
  8. .get(".responses-wrapper")
  9. .within(() => {
  10. cy
  11. .get(".microlight")
  12. .should("include.text", xmlIndicator)
  13. })
  14. })
  15. })
  16. describe("#6442: 'Example' keyword definitions can not be rendered as xml", () => {
  17. it("should render response examples accourdingly to content-type xml", () => {
  18. const xmlIndicator = "<x>should be xml</x>"
  19. cy
  20. .visit("?url=/documents/bugs/6442.yaml")
  21. .get("#operations-default-xmlTest2")
  22. .click()
  23. .get(".responses-wrapper")
  24. .within(() => {
  25. cy
  26. .get(".microlight")
  27. .should("include.text", xmlIndicator)
  28. })
  29. })
  30. })