Esempio n. 1
0
 /**
  * @Then I should not be able to log in as :username authenticated by :password password
  */
 public function iShouldNotBeAbleToLogInAsAuthenticatedByPassword($username, $password)
 {
     $this->logInAgain($username, $password);
     Assert::true($this->loginPage->hasValidationErrorWith('Error Bad credentials.'), 'I should see validation error.');
     Assert::false($this->dashboardPage->isOpen(), 'I should not be able to log in.');
 }
Esempio n. 2
0
 /**
  * @Then I should be on the administration dashboard
  */
 public function iShouldBeOnAdministrationDashboard()
 {
     Assert::true($this->dashboardPage->isOpen());
 }