File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
tests/unit/Codeception/Module Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ public function seeCheckboxIsChecked($checkbox): void
658658 $ this ->assertDomContains ($ checkboxes ->filter ('input[checked=checked] ' ), 'checkbox ' );
659659 }
660660
661- public function dontSeeCheckboxIsChecked (string $ checkbox ): void
661+ public function dontSeeCheckboxIsChecked ($ checkbox ): void
662662 {
663663 $ checkboxes = $ this ->getFieldsByLabelOrCss ($ checkbox );
664664 $ this ->assertSame (0 , $ checkboxes ->filter ('input[checked=checked] ' )->count ());
Original file line number Diff line number Diff line change @@ -484,13 +484,15 @@ public function testSeeCheckboxIsNotChecked()
484484 {
485485 $ this ->module ->amOnPage ('/form/checkbox ' );
486486 $ this ->module ->dontSeeCheckboxIsChecked ('#checkin ' );
487+ $ this ->module ->dontSeeCheckboxIsChecked (['css ' => '#checkin ' ]);
487488 $ this ->module ->dontSeeCheckboxIsChecked ('I Agree ' );
488489 }
489490
490491 public function testSeeCheckboxChecked ()
491492 {
492493 $ this ->module ->amOnPage ('/info ' );
493494 $ this ->module ->seeCheckboxIsChecked ('input[type=checkbox] ' );
495+ $ this ->module ->seeCheckboxIsChecked (['css ' => 'input[type=checkbox] ' ]);
494496 $ this ->module ->seeCheckboxIsChecked ('Checked ' );
495497 }
496498
You can’t perform that action at this time.
0 commit comments