File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ <html xmlns =" http://www.w3.org/1999/html" >
3+ <head ></head >
4+ <body >
5+ <form action =" /form/password_argument" method =" post" >
6+ <input type = " password" id = " password" name = " password" >
7+ <button type = " submit" >Submit</button >
8+ </form >
9+ </body >
10+ </html >
Original file line number Diff line number Diff line change @@ -1699,4 +1699,13 @@ public function testAttachFileThrowsCorrectMessageWhenFileDoesNotExist()
16991699 $ this ->module ->amOnPage ('/form/file ' );
17001700 $ this ->module ->attachFile ('Avatar ' , $ filename );
17011701 }
1702+
1703+ public function testPasswordArgument ()
1704+ {
1705+ $ this ->module ->amOnPage ('/form/password_argument ' );
1706+ $ this ->module ->fillField ('password ' , new \Codeception \Step \Argument \PasswordArgument ('thisissecret ' ));
1707+ $ this ->module ->click ('Submit ' );
1708+ $ data = data::get ('form ' );
1709+ $ this ->assertEquals ('thisissecret ' , $ data ['password ' ]);
1710+ }
17021711}
You can’t perform that action at this time.
0 commit comments