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
658
658
$ this ->assertDomContains ($ checkboxes ->filter ('input[checked=checked] ' ), 'checkbox ' );
659
659
}
660
660
661
- public function dontSeeCheckboxIsChecked (string $ checkbox ): void
661
+ public function dontSeeCheckboxIsChecked ($ checkbox ): void
662
662
{
663
663
$ checkboxes = $ this ->getFieldsByLabelOrCss ($ checkbox );
664
664
$ 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()
484
484
{
485
485
$ this ->module ->amOnPage ('/form/checkbox ' );
486
486
$ this ->module ->dontSeeCheckboxIsChecked ('#checkin ' );
487
+ $ this ->module ->dontSeeCheckboxIsChecked (['css ' => '#checkin ' ]);
487
488
$ this ->module ->dontSeeCheckboxIsChecked ('I Agree ' );
488
489
}
489
490
490
491
public function testSeeCheckboxChecked ()
491
492
{
492
493
$ this ->module ->amOnPage ('/info ' );
493
494
$ this ->module ->seeCheckboxIsChecked ('input[type=checkbox] ' );
495
+ $ this ->module ->seeCheckboxIsChecked (['css ' => 'input[type=checkbox] ' ]);
494
496
$ this ->module ->seeCheckboxIsChecked ('Checked ' );
495
497
}
496
498
You can’t perform that action at this time.
0 commit comments