6016.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. describe("Entries should be valid property name", () => {
  2. it("should render a OAS3.0 definition that uses 'entries' as a 'components' property name", () => {
  3. cy.visit("/?url=/documents/bugs/6016-oas3.yaml")
  4. .get("#operations-tag-default")
  5. .should("exist")
  6. })
  7. it("should render expanded Operations of OAS3.0 definition that uses 'entries' as a 'components' property name", () => {
  8. cy.visit("/?url=/documents/bugs/6016-oas3.yaml")
  9. .get("#operations-default-test_test__get")
  10. .click()
  11. .get("#operations-default-test_test__get > div .opblock-body")
  12. .should("exist")
  13. })
  14. it("should render expanded Models of OAS3.0 definition that uses 'entries' as a 'components' property name", () => {
  15. cy.visit("/?url=/documents/bugs/6016-oas3.yaml")
  16. .get("#model-Testmodel > span .model-box")
  17. .click()
  18. .get("div .model-box")
  19. .should("exist")
  20. })
  21. it("should render a OAS2.0 definition that uses 'entries' as a 'definitions' property name", () => {
  22. cy.visit("/?url=/documents/bugs/6016-oas2.yaml")
  23. .get("#operations-default-post_pet")
  24. .should("exist")
  25. })
  26. it("should render expanded Operations of OAS2.0 definition that uses 'entries' as a 'definitions' property name", () => {
  27. cy.visit("/?url=/documents/bugs/6016-oas2.yaml")
  28. .get("#operations-default-post_pet")
  29. .click()
  30. .get("#operations-default-post_pet > div .opblock-body")
  31. .should("exist")
  32. })
  33. it("should render expanded Models of OAS2.0 definition that uses 'entries' as a 'defintions' property name", () => {
  34. cy.visit("/?url=/documents/bugs/6016-oas2.yaml")
  35. .get("#model-Pet > span .model-box")
  36. .click()
  37. .get("div .model-box")
  38. .should("exist")
  39. })
  40. })