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.
 
 
 
 

32 line
1012 B

  1. import repeat from "lodash/repeat"
  2. describe("#5043: path-level $ref path items should inherit global consumes/produces", () => {
  3. it("should render consumes options correctly", () => {
  4. cy
  5. .visit("/?url=/documents/bugs/5043/swagger.yaml")
  6. .get("#operations-pet-findPetsByStatus")
  7. .click()
  8. .get(".try-out__btn")
  9. .click()
  10. .get(".content-type")
  11. .contains("application/json")
  12. .get(".content-type")
  13. .contains("application/xml")
  14. .get(".content-type")
  15. .contains("text/csv")
  16. })
  17. it("should render produces options correctly", () => {
  18. cy
  19. .visit("/?url=/documents/bugs/5043/swagger.yaml")
  20. .get("#operations-pet-findPetsByStatus")
  21. .click()
  22. .get(".try-out__btn")
  23. .click()
  24. .get(".body-param-content-type select")
  25. .contains("application/json")
  26. .get(".body-param-content-type select")
  27. .contains("application/xml")
  28. .get(".body-param-content-type select")
  29. .contains("text/csv")
  30. })
  31. })