Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Commit a1fbb91

Browse files
committed
Simplify users manager table xpath
1 parent 6a3ff8f commit a1fbb91

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/_support/Page/Acceptance/Administrator/UserManagerPage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ class UserManagerPage extends AdminPage
2727

2828
public static $title = ['id' => 'jform_title'];
2929

30-
public static $seeUserName = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[3]"];
30+
public static $seeUserName = ['xpath' => "//table[@id='userList']//tr[1]/td[3]"];
3131

32-
public static $seeName = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[2]"];
32+
public static $seeName = ['xpath' => "//table[@id='userList']//tr[1]/td[2]"];
3333

34-
public static $lastLoginDate = ['xpath' => ".//*[@id='userList']//*/tr[1]/td[8]"];
34+
public static $lastLoginDate = ['xpath' => "//table[@id='userList']//tr[1]/td[8]"];
3535

3636
public static $url = "administrator/index.php?option=com_users&view=users";
3737
}

tests/acceptance/users_frontend.feature

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ Feature: Users Frontend
44
I need to check user login and registration in joomla! CMS
55

66
Background:
7-
Given Joomla CMS is installed
8-
When Login into Joomla administrator with username "admin" and password "admin"
9-
Then I see administrator dashboard
7+
When I Login into Joomla administrator with username "admin" and password "admin"
8+
And I see the administrator dashboard
109

1110
Scenario: Create user from frontend (index.php?option=com_users)
1211
Given that user registration is enabled

0 commit comments

Comments
 (0)