![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/swagger-api/swagger-ui/test/e2e-cypress/e2e/bugs/ |
describe("#5070: Required field not highlighted on click of Execute button (second time)", () => { it("should not clear error class=invalid on input field (Swagger)", () => { cy .visit("/?url=/documents/petstore.swagger.yaml") .get("#operations-pet-getPetById") .click() // Expand Try It Out .get(".try-out__btn") .click() // Execute without user input .get(".execute.opblock-control__btn") .click() .get(".parameters-col_description input") .should($el => { expect($el).to.have.length(1) const className = $el[0].className expect(className).to.match(/invalid/i) }) // Cancel Try It Out .get(".cancel") .click() // Expand Try It Out (Again) .get(".try-out__btn") .click() .get(".parameters-col_description input") .should($el => { expect($el).to.have.length(1) const className = $el[0].className expect(className).to.match(/invalid/i) }) }) })