Skip to content

Commit a75466a

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ describe("Form support", () => {
5454
cy.get("#cb5")
5555
.checkValidity({ valueMissing: true, checkValidity: false, reportValidity: false });
5656

57-
cy.get("form :invalid") // select using :invalid CSS pseudo-class
58-
.should("have.id", "cb5");
57+
cy.get("#cb5:invalid") // directly target the specific invalid element
58+
.should("exist");
5959

6060
cy.get("#cb5")
6161
.realClick();

0 commit comments

Comments
 (0)