Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

20 řádky
716 B

  1. describe("#4865: multiple invocations + OAS3 plugin", () => {
  2. it("control: should render the OAS3 badge correctly", () => {
  3. // This is a sanity check to make sure the badge is present.
  4. // If this is failing, it's probably not related to #4865.
  5. cy.visit("/?url=/documents/petstore-expanded.openapi.yaml")
  6. .get("#swagger-ui")
  7. .get("pre.version")
  8. .contains("OAS3")
  9. })
  10. it("test: should render the OAS3 badge correctly after re-initializing the UI", () => {
  11. cy.visit("/?url=/documents/petstore-expanded.openapi.yaml")
  12. .window()
  13. .then(win => win.onload()) // re-initializes Swagger UI
  14. .get("#swagger-ui")
  15. .get("pre.version")
  16. .contains("OAS3")
  17. })
  18. })