From 20109ea9593a1e69c937f27d9701898e86f56e6c Mon Sep 17 00:00:00 2001 From: Prital Patel Date: Thu, 7 Jul 2016 09:01:14 +0530 Subject: [PATCH 1/7] Using contants for timeouts --- .../Step/Acceptance/users_frontend.php | 7 +++ tests/acceptance.suite.dist.yml | 2 +- tests/acceptance/users_frontend.feature | 47 +++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 tests/_support/Step/Acceptance/users_frontend.php create mode 100644 tests/acceptance/users_frontend.feature diff --git a/tests/_support/Step/Acceptance/users_frontend.php b/tests/_support/Step/Acceptance/users_frontend.php new file mode 100644 index 0000000000..b02712a7fe --- /dev/null +++ b/tests/_support/Step/Acceptance/users_frontend.php @@ -0,0 +1,7 @@ + Date: Sun, 10 Jul 2016 16:39:59 +0530 Subject: [PATCH 2/7] Improvement in frontend feature --- tests/acceptance/users_frontend.feature | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/users_frontend.feature b/tests/acceptance/users_frontend.feature index 6085967da6..f586df46f6 100644 --- a/tests/acceptance/users_frontend.feature +++ b/tests/acceptance/users_frontend.feature @@ -4,15 +4,14 @@ Feature: Users Frontend I need to check user login and registration in joomla! CMS Background: - Given Joomla CMS is installed - Then I see the joomla! Home page + Given I see the joomla! Home page Scenario: Create user from frontend (index.php?option=com_users) Given I click on the link "Create an account" And I create a user with fields Name "patel", Username "patel", Password "patel" and Email "patel@gmail.com" When I press the "Register" Then I see "Could not instantiate mail function." message - But user is created + And user is created Scenario: check the created user in the backend Given There is a user manager page in administrator @@ -27,7 +26,7 @@ Feature: Users Frontend Scenario: Check if block and activation are working Given There is a user manager page in administrator And I unblock the user "patel" - And I active the user "patel" + And I activate the user "patel" When A login user "patel" with password "patel" Then He should see the message "Hi patel," From d0378ccfaf227776e19be82bd57c68f3781d053e Mon Sep 17 00:00:00 2001 From: Prital Patel Date: Mon, 11 Jul 2016 16:06:37 +0530 Subject: [PATCH 3/7] improve the scenario --- tests/acceptance/users_frontend.feature | 35 +++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/tests/acceptance/users_frontend.feature b/tests/acceptance/users_frontend.feature index f586df46f6..43381dc148 100644 --- a/tests/acceptance/users_frontend.feature +++ b/tests/acceptance/users_frontend.feature @@ -3,40 +3,41 @@ Feature: Users Frontend As a user I need to check user login and registration in joomla! CMS - Background: - Given I see the joomla! Home page - Scenario: Create user from frontend (index.php?option=com_users) - Given I click on the link "Create an account" + Given that user registration is enabled + And there is no user with Username "patel" or Email "patel@gmail.com" + When I click on the link "Create an account" And I create a user with fields Name "patel", Username "patel", Password "patel" and Email "patel@gmail.com" - When I press the "Register" + And I press the "Register" Then I see "Could not instantiate mail function." message And user is created Scenario: check the created user in the backend - Given There is a user manager page in administrator + Given I am on the User Manager page When I search the user with user name "patel" Then I should see the user "prital" - Scenario: Login with created user to assure it is blocked - Given A newly created user "patel" with password "patel" - When He press the "login" - Then He should see the "Login denied! Your account has either been blocked or you have not activated it yet." warning + Scenario: User can not login, if the account has not been activated + Given A not yet activated user with username "patel" and password "patel" exists + And I am on a frontend page with a login module + When I enter username "patel" and password "patel" into the login module + And I press the "login" button + Then I should see the "Login denied! Your account has either been blocked or you have not activated it yet." warning Scenario: Check if block and activation are working - Given There is a user manager page in administrator - And I unblock the user "patel" + Given I am on the User Manager page + When I unblock the user "patel" And I activate the user "patel" - When A login user "patel" with password "patel" - Then He should see the message "Hi patel," + And I login with user "patel" with password "patel" in frontend + Then I should see the message "Hi patel," Scenario: Profile changes done in the frontend are available in the backend Given I am logged in into the frontend as user "patel" - And I press the "Edit Profile" button + When I press the "Edit Profile" button And I change the name to "patidar" And I press the "submit" button - When I login to the backend as "admin" - And I go to the user manager page + And I login to the backend as "admin" + And I am on the User Manager page And I search the user with name "patidar" Then I should see the name "patidar" From 341a352906c19fc42ef280d598c49cb485621592 Mon Sep 17 00:00:00 2001 From: Prital Patel Date: Thu, 14 Jul 2016 19:36:42 +0530 Subject: [PATCH 4/7] Implement user frontend scenarios --- RoboFile.php | 9 + .../Administrator/UserManagerPage.php | 14 +- .../Page/Acceptance/Site/Frontendlogin.php | 19 ++ .../Page/Acceptance/Site/Frontpage.php | 11 + .../Step/Acceptance/Administrator/User.php | 10 +- .../Step/Acceptance/Site/users_frontend.php | 304 ++++++++++++++++++ .../Step/Acceptance/users_frontend.php | 7 - tests/acceptance/users.feature | 8 +- tests/acceptance/users_frontend.feature | 32 +- 9 files changed, 383 insertions(+), 31 deletions(-) create mode 100644 tests/_support/Page/Acceptance/Site/Frontendlogin.php create mode 100644 tests/_support/Page/Acceptance/Site/Frontpage.php create mode 100644 tests/_support/Step/Acceptance/Site/users_frontend.php delete mode 100644 tests/_support/Step/Acceptance/users_frontend.php diff --git a/RoboFile.php b/RoboFile.php index ac70104829..dfa61f0e39 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -291,6 +291,15 @@ public function runTests($opts = ['use-htaccess' => false, 'env' => 'desktop']) ->run() ->stopOnFail(); + $this->taskCodecept($pathToCodeception) + ->arg('--steps') + ->arg('--debug') + ->arg('--fail-fast') + ->arg('--env ' . $opts['env']) + ->arg('tests/acceptance/users_frontend.feature') + ->run() + ->stopOnFail(); + /* $this->taskCodecept($pathToCodeception) ->arg('--steps') ->arg('--debug') diff --git a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php index 20c349ca83..825a6ea722 100644 --- a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php +++ b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php @@ -11,15 +11,27 @@ class UserManagerPage extends AdminPage public static $passwordField = ['id' => 'jform_password']; + public static $password1Field = ['id' => 'jform_password1']; + public static $password2Field = ['id' => 'jform_password2']; public static $emailField = ['id' => 'jform_email']; + + public static $email1Field = ['id' => 'jform_email1']; + + public static $email2Field = ['id' => 'jform_email2']; public static $filterSearch = ['id' => 'filter_search']; public static $iconSearch = ['class' => 'icon-search']; public static $title = ['id' => 'jform_title']; - + + public static $seeUserName = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[3]"]; + + public static $seeName = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[2]"]; + + public static $lastLoginDate = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[8]"]; + public static $url = "administrator/index.php?option=com_users&view=users"; } diff --git a/tests/_support/Page/Acceptance/Site/Frontendlogin.php b/tests/_support/Page/Acceptance/Site/Frontendlogin.php new file mode 100644 index 0000000000..736746f727 --- /dev/null +++ b/tests/_support/Page/Acceptance/Site/Frontendlogin.php @@ -0,0 +1,19 @@ + 'modlgn-username']; + + public static $modlgnPasswd = ['id' => 'modlgn-passwd']; + + public static $btnGroup = ['class' => 'btn-group']; + + public static $btnPrimaryValidate = ['class' => 'btn-primary']; + + public static $mdlLogin = ['xpath' => ".//*[@id='aside']/div[2]/h3"]; + + +} diff --git a/tests/_support/Page/Acceptance/Site/Frontpage.php b/tests/_support/Page/Acceptance/Site/Frontpage.php new file mode 100644 index 0000000000..927916e59d --- /dev/null +++ b/tests/_support/Page/Acceptance/Site/Frontpage.php @@ -0,0 +1,11 @@ + 'alert-message']; + + public static $loginGreeting = ['class' => 'login-greeting']; +} diff --git a/tests/_support/Step/Acceptance/Administrator/User.php b/tests/_support/Step/Acceptance/Administrator/User.php index 6cec19bdfd..942a00cbb4 100644 --- a/tests/_support/Step/Acceptance/Administrator/User.php +++ b/tests/_support/Step/Acceptance/Administrator/User.php @@ -1,11 +1,12 @@ waitForText($message, 60, AdminPage::$systemMessageContainer); + $I->waitForText($message, TIMEOUT, AdminPage::$systemMessageContainer); $I->see($message, AdminPage::$systemMessageContainer); } @@ -380,7 +381,7 @@ public function iGotoTheOptionSetting() public function iSetAllowUserRegistrationAsAYes() { $I = $this; - $I->selectOptionInRadioField('Allow User Registration', 'Yes'); + $I->click(Locator::contains('label', 'Yes')); } /** @@ -393,13 +394,12 @@ public function iSaveTheSetting() } - /** * @Then I should be see the link Create an account in frontend */ public function iShouldBeSeeTheLinkCreateAnAccountInFrontend() { $I = $this; - $I->click(['class' => 'brand visible-desktop visible-tablet']); + $I->amOnPage('/'); } } diff --git a/tests/_support/Step/Acceptance/Site/users_frontend.php b/tests/_support/Step/Acceptance/Site/users_frontend.php new file mode 100644 index 0000000000..4c1cf30073 --- /dev/null +++ b/tests/_support/Step/Acceptance/Site/users_frontend.php @@ -0,0 +1,304 @@ +amOnPage(UserManagerPage::$url); + $I->clickToolbarButton('options'); + $I->click(Locator::contains('label', 'Yes')); + $I->clickToolbarButton('Save'); + } + + /** + * @Given there is no user with Username :arg1 or Email :arg2 + */ + public function thereIsNoUserWithUsernameOrEmail($username, $email) + { + $I = $this; + $I->amOnPage(UserManagerPage::$url); + $I->fillField(UserManagerPage::$filterSearch, $username); + $I->click(UserManagerPage::$iconSearch); + $I->see('No Matching Results'); + $I->fillField(UserManagerPage::$filterSearch, $email); + $I->click(UserManagerPage::$iconSearch); + $I->see('No Matching Results'); + } + + /** + * @When I press on the link :arg1 + */ + public function iPressOnTheLink($CreateAccount) + { + $I = $this; + $I->amOnPage(Frontpage::$url); + $I->click($CreateAccount); + $I->waitForText('User Registration', TIMEOUT); + } + + /** + * @When I create a user with fields Name :arg1, Uaername :arg1, Password :arg1 and Email :arg4 + */ + public function iCreateAUserWithFieldsNameUaernamePasswordAndEmail($name, $username, $password, $email) + { + $I = $this; + $I->fillField(UserManagerPage::$nameField, $name); + $I->fillField(UserManagerPage::$usernameField, $username); + $I->fillField(UserManagerPage::$password1Field, $password); + $I->fillField(UserManagerPage::$password2Field, $password); + $I->fillField(UserManagerPage::$email1Field, $email); + $I->fillField(UserManagerPage::$email2Field, $email); + } + + /** + * @When I press the :arg1 button + */ + public function iPressTheButton($register) + { + $I = $this; + $I->click($register); + } + + /** + * @Then I should see :arg1 message + */ + public function iShouldSeeMessage($message) + { + $I = $this; + $I->see($message, Frontpage::$alertMessage); + } + + /** + * @Then user is created + */ + public function userIsCreated() + { + $I = $this; + } + + /** + * @Given I am on the User Manager page + */ + public function iAmOnTheUserManagerPage() + { + $I = $this; + $I->amOnPage(UserManagerPage::$url); + } + + /** + * @When I search the user with user name :arg1 + */ + public function iSearchTheUserWithUserName($username) + { + $I = $this; + $I->waitForText('Users', TIMEOUT); + $I->fillField(UserManagerPage::$filterSearch, $username); + $I->click(UserManagerPage::$iconSearch); + } + + /** + * @Then I should see the user :arg1 + */ + public function iShouldSeeTheUser($username) + { + $I = $this; + $I->see($username, UserManagerPage::$seeUserName); + } + + /** + * @Given A not yet activated user with username :arg1 exists + */ + public function aNotYetActivatedUserWithUsernameExists($username) + { + $I = $this; + $I->amOnPage(UserManagerPage::$url); + $I->see($username, UserManagerPage::$seeName); + } + + /** + * @Given I am on a frontend page with a login module + */ + public function iAmOnAFrontendPageWithALoginModule() + { + $I = $this; + $I->amOnPage(Frontpage::$url); + $I->see('Login Form', Frontendlogin::$mdlLogin); + } + + /** + * @When I enter username :arg1 and password :arg1 into the login module + */ + public function iEnterUsernameAndPasswordIntoTheLoginModule($username, $password) + { + $I = $this; + $I->fillField(Frontendlogin::$modlgnUsername, $username); + $I->fillField(Frontendlogin::$modlgnPasswd, $password); + } + + /** + * @When I press on :arg1 + */ + public function iPressOnButton($login) + { + $I = $this; + $I->click($login); + } + + /** + * @Then I should see the :arg1 warning + */ + public function iShouldSeeTheWarning($warning) + { + $I = $this; + $I->see($warning, Frontpage::$alertMessage); + } + + /** + * @When I unblock the user :arg1 + */ + public function iUnblockTheUser($username) + { + $I = $this; + $I->fillField(UserManagerPage::$filterSearch, $username); + $I->click(UserManagerPage::$iconSearch); + $I->checkAllResults(); + $I->clickToolbarButton('unblock'); + } + + /** + * @When I activate the user :arg1 + */ + public function iActivateTheUser($username) + { + $I = $this; + $I->fillField(UserManagerPage::$filterSearch, $username); + $I->click(UserManagerPage::$iconSearch); + $I->checkAllResults(); + $I->clickToolbarButton('publish'); + } + + /** + * @When I login with user :arg1 with password :arg1 in frontend + */ + public function iLoginWithUserWithPasswordInFrontend($username, $password) + { + $I = $this; + $I->amOnPage(Frontpage::$url); + $I->fillField(Frontendlogin::$modlgnUsername, $username); + $I->fillField(Frontendlogin::$modlgnPasswd, $password); + $I->click('Log in'); + } + + /** + * @Then I should see the message :arg1 + */ + public function iShouldSeeTheMessage($message) + { + $I = $this; + $I->see($message, Frontpage::$loginGreeting); + } + + /** + * @Given I am logged in into the frontend as user :arg1 with password :arg2 + */ + public function iAmLoggedInIntoTheFrontendAsUser($username, $password) + { + $I = $this; + $I->amOnPage(Frontpage::$url); + $I->fillField(Frontendlogin::$modlgnUsername, $username); + $I->fillField(Frontendlogin::$modlgnPasswd, $password); + $I->click('Log in'); + } + + /** + * @When I press on the :arg1 button + */ + public function iPressOnTheButton($editProfile) + { + $I = $this; + $I->amOnPage(Frontendlogin::$profile); + $I->click($editProfile); + } + + /** + * @When I change the name to :arg1 + */ + public function iChangeTheNameTo($name) + { + $I = $this; + $I->waitForText('Edit Your Profile', TIMEOUT); + $I->fillField(UserManagerPage::$nameField, $name); + } + + /** + * @When I press on :arg1 button + */ + public function iPressOn($submit) + { + $I = $this; + $I->click($submit); + } + + /** + * @When I search the user with name :arg1 + */ + public function iSearchTheUserWithName($name) + { + $I = $this; + $I->fillField(UserManagerPage::$filterSearch, $name); + $I->click(UserManagerPage::$iconSearch); + } + + /** + * @Then I should see the name :name + */ + public function iShouldSeeTheName($name) + { + $I = $this; + $I->see($name, UserManagerPage::$seeName); + } + + /** + * @Given Needs to user :arg1 logged in at least once + */ + public function needsToUserLoggedInAtLeastOnce($arg1) + { + // Do nothing as user will be already logged in previous tests. + $I = $this; + } + + /** + * @When I login as a super admin from backend + */ + public function iLoginAsASuperAdminFromBackend() + { + $I = $this; + $I->amOnPage(UserManagerPage::$url); + } + + /** + * @Then I should see last login date for :name + */ + public function iShouldSeeLastLoginDate($name) + { + $I = $this; + + // @TODO needs to create common function to use search. + $I->fillField(UserManagerPage::$filterSearch, $name); + $I->click(UserManagerPage::$iconSearch); + + // Just make sure that we don't see "Never". + $I->dontSee('Never', UserManagerPage::$lastLoginDate); + } +} diff --git a/tests/_support/Step/Acceptance/users_frontend.php b/tests/_support/Step/Acceptance/users_frontend.php deleted file mode 100644 index b02712a7fe..0000000000 --- a/tests/_support/Step/Acceptance/users_frontend.php +++ /dev/null @@ -1,7 +0,0 @@ - Date: Mon, 25 Jul 2016 10:38:03 +0200 Subject: [PATCH 5/7] Fix missing call to Step object --- .../Acceptance/Site/{users_frontend.php => UsersFrontend.php} | 2 +- tests/acceptance.suite.dist.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename tests/_support/Step/Acceptance/Site/{users_frontend.php => UsersFrontend.php} (99%) diff --git a/tests/_support/Step/Acceptance/Site/users_frontend.php b/tests/_support/Step/Acceptance/Site/UsersFrontend.php similarity index 99% rename from tests/_support/Step/Acceptance/Site/users_frontend.php rename to tests/_support/Step/Acceptance/Site/UsersFrontend.php index 4c1cf30073..2780657ba7 100644 --- a/tests/_support/Step/Acceptance/Site/users_frontend.php +++ b/tests/_support/Step/Acceptance/Site/UsersFrontend.php @@ -7,7 +7,7 @@ use Page\Acceptance\Site\Frontendlogin; -class users_frontend extends \AcceptanceTester +class UsersFrontend extends \AcceptanceTester { /** * @Given that user registration is enabled diff --git a/tests/acceptance.suite.dist.yml b/tests/acceptance.suite.dist.yml index 085cf6a988..b825d31bac 100644 --- a/tests/acceptance.suite.dist.yml +++ b/tests/acceptance.suite.dist.yml @@ -37,5 +37,6 @@ gherkin: default: - AcceptanceTester - Step\Acceptance\Administrator\User + - Step\Acceptance\Site\UsersFrontend - Page\Acceptance\Administrator\Login - Step\Acceptance\Administrator\Content \ No newline at end of file From a1fbb91e542f22501d1f47b94dae7a4e16770ab4 Mon Sep 17 00:00:00 2001 From: javier gomez Date: Mon, 25 Jul 2016 11:21:28 +0200 Subject: [PATCH 6/7] Simplify users manager table xpath --- .../Page/Acceptance/Administrator/UserManagerPage.php | 6 +++--- tests/acceptance/users_frontend.feature | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php index 825a6ea722..eafc053c82 100644 --- a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php +++ b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php @@ -27,11 +27,11 @@ class UserManagerPage extends AdminPage public static $title = ['id' => 'jform_title']; - public static $seeUserName = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[3]"]; + public static $seeUserName = ['xpath' => "//table[@id='userList']//tr[1]/td[3]"]; - public static $seeName = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[2]"]; + public static $seeName = ['xpath' => "//table[@id='userList']//tr[1]/td[2]"]; - public static $lastLoginDate = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[8]"]; + public static $lastLoginDate = ['xpath' => "//table[@id='userList']//tr[1]/td[8]"]; public static $url = "administrator/index.php?option=com_users&view=users"; } diff --git a/tests/acceptance/users_frontend.feature b/tests/acceptance/users_frontend.feature index 8245075926..d74ad24ff8 100644 --- a/tests/acceptance/users_frontend.feature +++ b/tests/acceptance/users_frontend.feature @@ -4,9 +4,8 @@ Feature: Users Frontend I need to check user login and registration in joomla! CMS Background: - Given Joomla CMS is installed - When Login into Joomla administrator with username "admin" and password "admin" - Then I see administrator dashboard + When I Login into Joomla administrator with username "admin" and password "admin" + And I see the administrator dashboard Scenario: Create user from frontend (index.php?option=com_users) Given that user registration is enabled From 78bc08ccb2ce18420cf779341804d85d0cbd7c6c Mon Sep 17 00:00:00 2001 From: javier gomez Date: Mon, 25 Jul 2016 12:41:57 +0200 Subject: [PATCH 7/7] Fix typo error --- .../Page/Acceptance/Administrator/UserManagerPage.php | 9 ++++++--- tests/_support/Step/Acceptance/Site/UsersFrontend.php | 8 ++++++-- tests/acceptance/users_frontend.feature | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php index eafc053c82..b1d671453b 100644 --- a/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php +++ b/tests/_support/Page/Acceptance/Administrator/UserManagerPage.php @@ -5,6 +5,10 @@ class UserManagerPage extends AdminPage { + public static $url = "administrator/index.php?option=com_users&view=users"; + + public static $pageTitleText = "Users"; + public static $nameField = ['id' => 'jform_name']; public static $usernameField = ['id' => 'jform_username']; @@ -18,9 +22,9 @@ class UserManagerPage extends AdminPage public static $emailField = ['id' => 'jform_email']; public static $email1Field = ['id' => 'jform_email1']; - + public static $email2Field = ['id' => 'jform_email2']; - + public static $filterSearch = ['id' => 'filter_search']; public static $iconSearch = ['class' => 'icon-search']; @@ -33,5 +37,4 @@ class UserManagerPage extends AdminPage public static $lastLoginDate = ['xpath' => "//table[@id='userList']//tr[1]/td[8]"]; - public static $url = "administrator/index.php?option=com_users&view=users"; } diff --git a/tests/_support/Step/Acceptance/Site/UsersFrontend.php b/tests/_support/Step/Acceptance/Site/UsersFrontend.php index 2780657ba7..e0825b5062 100644 --- a/tests/_support/Step/Acceptance/Site/UsersFrontend.php +++ b/tests/_support/Step/Acceptance/Site/UsersFrontend.php @@ -48,9 +48,9 @@ public function iPressOnTheLink($CreateAccount) } /** - * @When I create a user with fields Name :arg1, Uaername :arg1, Password :arg1 and Email :arg4 + * @When I create a user with fields Name :arg1, Username :arg1, Password :arg1 and Email :arg4 */ - public function iCreateAUserWithFieldsNameUaernamePasswordAndEmail($name, $username, $password, $email) + public function iCreateAUserWithFieldsNameUsernamePasswordAndEmail($name, $username, $password, $email) { $I = $this; $I->fillField(UserManagerPage::$nameField, $name); @@ -123,6 +123,10 @@ public function aNotYetActivatedUserWithUsernameExists($username) { $I = $this; $I->amOnPage(UserManagerPage::$url); + $I->waitForText(UserManagerPage::$pageTitleText, 60, UserManagerPage::$pageTitle); + $I->fillField(UserManagerPage::$filterSearch, $username); + $I->click(UserManagerPage::$iconSearch); + $I->waitForElement(['link' => $username], 60); $I->see($username, UserManagerPage::$seeName); } diff --git a/tests/acceptance/users_frontend.feature b/tests/acceptance/users_frontend.feature index d74ad24ff8..265f710a2d 100644 --- a/tests/acceptance/users_frontend.feature +++ b/tests/acceptance/users_frontend.feature @@ -11,7 +11,7 @@ Feature: Users Frontend Given that user registration is enabled And there is no user with Username "patel" or Email "patel@gmail.com" When I press on the link "Create an account" - And I create a user with fields Name "patel", Uaername "patel", Password "patel" and Email "patel@gmail.com" + And I create a user with fields Name "patel", Username "patel", Password "patel" and Email "patel@gmail.com" And I press the "Register" button Then I should see "Could not instantiate mail function." message