We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065a049 commit a43fd85Copy full SHA for a43fd85
packages/main/cypress/specs/FormSupport.cy.tsx
@@ -52,12 +52,7 @@ describe("Form support", () => {
52
.should("have.not.been.called");
53
54
cy.get("#cb5")
55
- .then($el => {
56
- const checkbox = $el[0] as CheckBox;
57
- expect(checkbox.validity.valueMissing).to.be.true;
58
- expect(checkbox.checkValidity()).to.be.false;
59
- expect(checkbox.reportValidity()).to.be.false;
60
- });
+ .checkValidity({ valueMissing: true, checkValidity: false, reportValidity: false });
61
62
cy.get("form :invalid") // select using :invalid CSS pseudo-class
63
.should("have.id", "cb5");
0 commit comments