Skip to content

Commit 07029d8

Browse files
committed
Finish test for reset password
1 parent 599b071 commit 07029d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/acceptance/ResetPasswordCept.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99
$I->see( 'Password Reset' );
1010
$I->fillField( 'username_email', 'wpwp_admin' );
1111
$I->click( 'Reset password' );
12+
$I->see( "We've sent an email to" );
1213
$I->waitForEmailWithSubject( "Reset your " . $I->grabOptionFromDatabase( 'blogname' ) . " password" );
1314
$lastMessage = $I->fetchLastMessage();
1415
$dom = HtmlDomParser::str_get_html( $lastMessage->html_body );
1516
$anchor = $dom->findOne( 'a' );
1617
$I->amOnUrl( str_replace( '&', '&', $anchor->href ) );
1718
$I->see( 'Enter a new password below' );
19+
$I->fillField( 'password', $_ENV['ADMIN_PASSWORD'] );
20+
$I->fillField( 'password_2', $_ENV['ADMIN_PASSWORD'] );
21+
$I->click('Reset password');
22+
$I->see('Password successfully reset');

0 commit comments

Comments
 (0)