Files
swagger-ui/test/e2e-cypress/tests/bugs/7996.js
Maciej Matyjas abeb168696 fix(ui): avoid empty div when there are no externalDocs (#7997)
* fix(ui): avoid empty div when there are no externalDocs

* test(ui): existence of externalDocs div when present/absent from spec
2022-05-12 15:45:14 -07:00

15 lines
592 B
JavaScript

describe("#7996: tag description text fills container when externalDocs section absent", () => {
it("should show externalDocs div when externalDocs present in specification", () => {
cy
.visit("?url=/documents/bugs/7996-tags-externalDocs.yaml")
.get("#operations-tag-foo .info__externaldocs")
.should("exist")
})
it("should have no externalDocs div when externalDocs absent from specification", () => {
cy
.visit("?url=/documents/bugs/7996-tags-externalDocs.yaml")
.get("#operations-tag-bar .info__externaldocs")
.should("not.exist")
})
})