Skip to content

Commit a43fd85

Browse files
kineticjsCopilot
andauthored
Update packages/main/cypress/specs/FormSupport.cy.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 065a049 commit a43fd85

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/main/cypress/specs/FormSupport.cy.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ describe("Form support", () => {
5252
.should("have.not.been.called");
5353

5454
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-
});
55+
.checkValidity({ valueMissing: true, checkValidity: false, reportValidity: false });
6156

6257
cy.get("form :invalid") // select using :invalid CSS pseudo-class
6358
.should("have.id", "cb5");

0 commit comments

Comments
 (0)