/** * @Then I should not be able to log in as :email with :password password */ public function iShouldNotBeAbleToLogInAsWithPassword($email, $password) { $this->iLogInAsWithPassword($email, $password); Assert::true($this->loginPage->hasValidationErrorWith('Error Account is disabled.'), 'I should see validation error.'); }
/** * @Then I should be notified about bad credentials */ public function iShouldBeNotifiedAboutBadCredentials() { Assert::true($this->loginPage->hasValidationErrorWith('Error Invalid credentials.'), 'I should see validation error.'); }
/** * @Then I should be notified about disabled account */ public function iShouldBeNotifiedAboutDisabledAccount() { Assert::true($this->loginPage->hasValidationErrorWith('Error Account is disabled.'), 'I should see validation error.'); }