Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

4865.js 716 B

12345678910111213141516171819
  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. })