Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

20 linhas
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. })