From 2dfd682a12a863b883af26c1189eacaf13d00240 Mon Sep 17 00:00:00 2001 From: Elias Luhr Date: Thu, 7 Feb 2019 13:37:35 +0100 Subject: [PATCH] Update FunctionalTester to work with usuario --- project/tests/codeception/_support/FunctionalTester.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/tests/codeception/_support/FunctionalTester.php b/project/tests/codeception/_support/FunctionalTester.php index 58688ea..3e71a31 100755 --- a/project/tests/codeception/_support/FunctionalTester.php +++ b/project/tests/codeception/_support/FunctionalTester.php @@ -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"]'); } }