5660.js 682 B

123456789101112131415161718192021
  1. // http://github.com/swagger-api/swagger-ui/issues/5660
  2. const expectedValue = "nullable: true"
  3. describe("#5660: Nullable object", () => {
  4. it("should render `nullable` marker for object ifself", () => {
  5. cy.visit("/?url=/documents/bugs/5660-model.yaml")
  6. .get("#model-SomeObject .model-toggle")
  7. .click()
  8. .get("#model-SomeObject > .model-box")
  9. .contains(expectedValue)
  10. })
  11. it("should render `nullable` marker for nexted object in property", () => {
  12. cy.visit("/?url=/documents/bugs/5660-property.yaml")
  13. .get("#model-SomeObject .model-toggle")
  14. .click()
  15. .get("#model-SomeObject > .model-box")
  16. .contains(expectedValue)
  17. })
  18. })