Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

topbar.js 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. describe("initial render", function () {
  2. let mainPage
  3. describe("for topbar", function () {
  4. let topbar
  5. before(function (client, done) {
  6. done()
  7. })
  8. after(function (client, done) {
  9. client.end(function () {
  10. done()
  11. })
  12. })
  13. afterEach(function (client, done) {
  14. done()
  15. })
  16. beforeEach(function (client, done) {
  17. mainPage = client
  18. .url("localhost:3200")
  19. .page.main()
  20. topbar = mainPage.section.topbar
  21. client.waitForElementVisible(".download-url-input", 10000)
  22. .pause(5000)
  23. .clearValue(".download-url-input")
  24. .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json")
  25. .click("button.download-url-button")
  26. .pause(1000)
  27. done()
  28. })
  29. it("renders section", function (client) {
  30. mainPage.expect.section("@topbar").to.be.visible
  31. client.end()
  32. })
  33. it("renders input box", function (client) {
  34. topbar.expect.element("@inputBox").to.be.visible
  35. client.end()
  36. })
  37. it("renders explore button", function (client) {
  38. topbar.expect.element("@btnExplore").to.be.visible
  39. client.end()
  40. })
  41. })
  42. })