Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
[Behat] Improve 'I go to User page' sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel committed Apr 20, 2016
1 parent 1fa996f commit e79ba26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Features/Context/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public function iCreateUser(TableNode $users = null)
*/
public function goToUserPage($username)
{
$this->iAmOnPage('Users');
$this->waitWhileLoading();
$this->clickOnTreePath("$username $username");
$this->sleep(); //safeguard for application delays
}
Expand Down
3 changes: 1 addition & 2 deletions Features/Users/users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ Feature: Use the eZ Users field

@javascript @edge
Scenario: Validate that users have the "Delete" button available
Given I am on the Users page
And there is a User with name "One"
Given there is a User with name "One"
When I go to User "One" page
Then I should not see a "Send to thrash" action bar button
And I should see a "Delete" action bar button

0 comments on commit e79ba26

Please sign in to comment.