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ů.
 
 
 
 

29 řádky
759 B

  1. const expect = require("expect")
  2. describe("onComplete option", function () {
  3. let mainPage
  4. beforeEach(function (client, done) {
  5. mainPage = client
  6. .url("localhost:3230")
  7. .page.main()
  8. client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
  9. .pause(80)
  10. .clearValue(".download-url-input")
  11. .setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
  12. .click("button.download-url-button")
  13. .pause(1000)
  14. done()
  15. })
  16. it("triggers the page-provided onComplete exactly 1 times", function (client, done) {
  17. client.execute(function() {
  18. return window.completeCount
  19. }, [], (result) => {
  20. expect(result.value).toEqual(1)
  21. client.end()
  22. })
  23. })
  24. })