You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 regels
859 B

  1. describe("Remote $ref rendering", function () {
  2. let mainPage
  3. beforeEach(function (client, done) {
  4. mainPage = client
  5. // expand the models so we don't have to manually do it
  6. .url("localhost:3230?defaultModelsExpandDepth=5")
  7. .page.main()
  8. client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
  9. .pause(2000)
  10. .clearValue(".download-url-input")
  11. .setValue(".download-url-input", "http://localhost:3230/test-specs/refs/api1.yaml")
  12. .click("button.download-url-button")
  13. .pause(1000)
  14. done()
  15. })
  16. it("renders a remote $ref correctly", function (client) {
  17. mainPage.expect.element("#model-TestResponse > span > div > span > span > span.inner-object > table > tbody > tr:nth-child(2) > td:nth-child(2) > span > span > div > div > p").text.to.equal("this is an api2prop")
  18. client.end()
  19. })
  20. })