Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
Update FunctionalTester to work with usuario
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Feb 7, 2019
1 parent 28d3f6b commit 1a418df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/tests/codeception/_support/FunctionalTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class FunctionalTester extends \Codeception\Actor
*/
public function login($username, $password){
$this->amOnPage('/user/security/login');
$this->fillField('input[name="login-form[login]"]', $username);
$this->fillField('input[name="login-form[password]"]', $password);
$this->click('#login-form button');
$this->fillField('input[name="LoginForm[login]"]', $username);
$this->fillField('input[name="LoginForm[password]"]', $password);
$this->click('#LoginForm button[type="submit"]');
}
}

0 comments on commit 1a418df

Please sign in to comment.