Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

32 строки
1.0 KiB

  1. describe("bug #4374: OAS3 parameters should be visibly validated in Try-It-Out", function () {
  2. let mainPage
  3. beforeEach(function (client, done) {
  4. mainPage = client
  5. .url("localhost:3230")
  6. .page.main()
  7. client.waitForElementVisible(".download-url-input:not([disabled])", 10000)
  8. .clearValue(".download-url-input")
  9. .setValue(".download-url-input", "/test-specs/bugs/4374.yaml")
  10. .click("button.download-url-button")
  11. .pause(1000)
  12. done()
  13. })
  14. afterEach(function (client, done) {
  15. done()
  16. })
  17. it("indicates an error when a required parameter is not selected", function (client) {
  18. client.waitForElementVisible(".opblock-tag-section", 10000)
  19. .assert.containsText(".opblock-summary-path span", "/pet/findByStatus")
  20. .click(".opblock")
  21. .waitForElementVisible(".opblock.is-open", 5000)
  22. .click(".try-out__btn")
  23. .click(".btn.execute")
  24. .pause(100)
  25. .assert.cssClassPresent(".parameters-col_description select", "invalid")
  26. client.end()
  27. })
  28. })