/** * @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.'); }
/** * @Then I should be on the administration dashboard */ public function iShouldBeOnAdministrationDashboard() { Assert::true($this->dashboardPage->isOpen()); }