-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: remove clearValidation from onTryoutClick
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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) | ||
}) | ||
}) | ||
}) |