Skip to content

Commit

Permalink
fixup! Fixed acceptance 1
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Feb 27, 2018
1 parent b09152e commit 22785c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function createNewUserButton() {
* @return Locator
*/
public static function rowForUser($user) {
return Locator::forThe()->xpath("//table[@id = 'userlist']//th[@data-uid='$user']/..")->
return Locator::forThe()->xpath("//table[@id = 'userlist']//tr[normalize-space() = '$user']/..")->
describedAs("Row for user $user in Users Settings");
}

Expand Down
1 change: 1 addition & 0 deletions tests/acceptance/features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Feature: login
When I act as Jane
And I am logged in as the admin
And I open the User settings
And I see that the list of users contains the user user0
And I set the password for user0 to 654321
And I see that the "Password successfully changed" notification is shown
And I act as John
Expand Down

0 comments on commit 22785c5

Please sign in to comment.