File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ <form method =" POST" action =" /form/uncheck_hidden" >
2+
3+ <!-- Do you need coffee ? (label) -->
4+ <input type = " hidden" name = " coffee" value = " 0" >
5+ <input type = " checkbox" name = " coffee" value = " 1" id = " coffee-id" checked >
6+
7+ <button type = " submit" >Submit Preference</button >
8+ </form >
Original file line number Diff line number Diff line change @@ -1780,4 +1780,13 @@ public function testHaveServerParameter()
17801780 $ server = $ this ->module ->client ->getRequest ()->getServer ();
17811781 $ this ->assertArrayHasKey ('my ' , $ server );
17821782 }
1783+
1784+ public function testUncheckHidden ()
1785+ {
1786+ $ this ->module ->amOnPage ('/form/uncheck_hidden ' );
1787+ $ this ->module ->uncheckOption ('#coffee-id ' );
1788+ $ this ->module ->click ("Submit Preference " );
1789+ $ form = data::get ('form ' );
1790+ $ this ->assertEquals ('0 ' , $ form ['coffee ' ]);
1791+ }
17831792}
You can’t perform that action at this time.
0 commit comments