We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599b071 commit 07029d8Copy full SHA for 07029d8
tests/acceptance/ResetPasswordCept.php
@@ -9,9 +9,14 @@
9
$I->see( 'Password Reset' );
10
$I->fillField( 'username_email', 'wpwp_admin' );
11
$I->click( 'Reset password' );
12
+$I->see( "We've sent an email to" );
13
$I->waitForEmailWithSubject( "Reset your " . $I->grabOptionFromDatabase( 'blogname' ) . " password" );
14
$lastMessage = $I->fetchLastMessage();
15
$dom = HtmlDomParser::str_get_html( $lastMessage->html_body );
16
$anchor = $dom->findOne( 'a' );
17
$I->amOnUrl( str_replace( '&', '&', $anchor->href ) );
18
$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