mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Merge pull request #2977 from PaulVanSchayck/fix-webdriver-test
Add wait() to login test with wrong credentials to fix WebDriver test
This commit is contained in:
		@ -17,6 +17,9 @@ $I->see('Password cannot be blank.');
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
$I->amGoingTo('try to login with wrong credentials');
 | 
					$I->amGoingTo('try to login with wrong credentials');
 | 
				
			||||||
$loginPage->login('admin', 'wrong');
 | 
					$loginPage->login('admin', 'wrong');
 | 
				
			||||||
 | 
					if (method_exists($I, 'wait')) {
 | 
				
			||||||
 | 
					    $I->wait(3); // only for selenium
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
$I->expectTo('see validations errors');
 | 
					$I->expectTo('see validations errors');
 | 
				
			||||||
$I->see('Incorrect username or password.');
 | 
					$I->see('Incorrect username or password.');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user