25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
1.0 KiB

  1. describe("#5070: Required field not highlighted on click of Execute button (second time)", () => {
  2. it("should not clear error class=invalid on input field (Swagger)", () => {
  3. cy
  4. .visit("/?url=/documents/petstore.swagger.yaml")
  5. .get("#operations-pet-getPetById")
  6. .click()
  7. // Expand Try It Out
  8. .get(".try-out__btn")
  9. .click()
  10. // Execute without user input
  11. .get(".execute.opblock-control__btn")
  12. .click()
  13. .get(".parameters-col_description input")
  14. .should($el => {
  15. expect($el).to.have.length(1)
  16. const className = $el[0].className
  17. expect(className).to.match(/invalid/i)
  18. })
  19. // Cancel Try It Out
  20. .get(".cancel")
  21. .click()
  22. // Expand Try It Out (Again)
  23. .get(".try-out__btn")
  24. .click()
  25. .get(".parameters-col_description input")
  26. .should($el => {
  27. expect($el).to.have.length(1)
  28. const className = $el[0].className
  29. expect(className).to.match(/invalid/i)
  30. })
  31. })
  32. })