Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

36 wiersze
1.1 KiB

  1. describe("SWOS-63: Schema/Model labeling", () => {
  2. describe("SchemaS/Models section", () => {
  3. it("should render `Schemas` for OpenAPI 3", () => {
  4. cy
  5. .visit("/?url=/documents/petstore-expanded.openapi.yaml")
  6. .get("section.models > h4")
  7. .contains("Schemas")
  8. })
  9. it("should render `Models` for OpenAPI 2", () => {
  10. cy
  11. .visit("/?url=/documents/petstore.swagger.yaml")
  12. .get("section.models > h4")
  13. .contains("Models")
  14. })
  15. })
  16. describe("ModelExample within Operation", () => {
  17. it("should render `Schemas` for OpenAPI 3", () => {
  18. cy
  19. .visit("/?url=/documents/petstore-expanded.openapi.yaml")
  20. .get("#operations-default-findPets")
  21. .click()
  22. .get("a.tablinks[data-name=model]")
  23. .contains("Schema")
  24. })
  25. it("should render `Models` for OpenAPI 2", () => {
  26. cy
  27. .visit("/?url=/documents/petstore.swagger.yaml")
  28. .get("section.models > h4")
  29. .get("#operations-pet-addPet")
  30. .click()
  31. .get("a.tablinks[data-name=model]")
  32. .contains("Model")
  33. })
  34. })
  35. })