File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/main/cypress/specs Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ describe("Form support", () => {
53
53
54
54
cy . get ( "#cb5" )
55
55
. then ( $el => {
56
- expect ( ( $el [ 0 ] as CheckBox ) . validity . valueMissing ) . to . be . true ;
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 ;
57
60
} ) ;
58
61
59
62
cy . get ( "form :invalid" ) // select using :invalid CSS pseudo-class
@@ -675,7 +678,10 @@ describe("Form support", () => {
675
678
676
679
cy . get ( "#select9" )
677
680
. then ( $el => {
678
- expect ( ( $el [ 0 ] as Select ) . validity . valueMissing ) . to . be . true ;
681
+ const select = $el [ 0 ] as Select ;
682
+ expect ( select . validity . valueMissing ) . to . be . true ;
683
+ expect ( select . checkValidity ( ) ) . to . be . false ;
684
+ expect ( select . reportValidity ( ) ) . to . be . false ;
679
685
} ) ;
680
686
681
687
cy . get ( "form :invalid" ) // select using :invalid CSS pseudo-class
You can’t perform that action at this time.
0 commit comments