Commit 9cb27e86b50f4fca432fdc47a8f841fad81c00ed
1 parent
2c34624b
Exists in
master
and in
22 other branches
manage-users: fix selenium tests
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
features/manage_users.feature
| ... | ... | @@ -15,7 +15,7 @@ Background: |
| 15 | 15 | Scenario: deactive user |
| 16 | 16 | When I follow "Deactivate user" within "tr[title='Joao Silva']" |
| 17 | 17 | And I confirm the "Do you want to deactivate this user?" dialog |
| 18 | - Then I should see "Activate user" within "tr[title='Joao Silva']" | |
| 18 | + Then the "tr[title='Joao Silva'] td.actions a.icon-activate-user" button should be enabled | |
| 19 | 19 | |
| 20 | 20 | @selenium |
| 21 | 21 | Scenario: activate user |
| ... | ... | @@ -23,7 +23,7 @@ Background: |
| 23 | 23 | Given I confirm the "Do you want to deactivate this user?" dialog |
| 24 | 24 | When I follow "Activate user" within "tr[title='Paulo Santos']" |
| 25 | 25 | And I confirm the "Do you want to activate this user?" dialog |
| 26 | - Then I should see "Deactivate user" within "tr[title='Paulo Santos']" | |
| 26 | + Then the "tr[title='Paulo Santos'] td.actions a.icon-deactivate-user" button should be enabled | |
| 27 | 27 | |
| 28 | 28 | @selenium |
| 29 | 29 | Scenario: remove user |
| ... | ... | @@ -36,7 +36,7 @@ Background: |
| 36 | 36 | Scenario: admin user |
| 37 | 37 | When I follow "Set admin role" within "tr[title='Joao Silva']" |
| 38 | 38 | And I confirm the "Do you want to set this user as administrator?" dialog |
| 39 | - Then I should see "Reset admin role" within "tr[title='Joao Silva']" | |
| 39 | + Then the "tr[title='Joao Silva'] td.actions a.icon-reset-admin-role" button should be enabled | |
| 40 | 40 | |
| 41 | 41 | @selenium |
| 42 | 42 | Scenario: unadmin user |
| ... | ... | @@ -44,4 +44,4 @@ Background: |
| 44 | 44 | And I confirm the "Do you want to set this user as administrator?" dialog |
| 45 | 45 | When I follow "Reset admin role" within "tr[title='Paulo Santos']" |
| 46 | 46 | And I confirm the "Do you want to reset this user as administrator?" dialog |
| 47 | - Then I should see "Set admin role" within "tr[title='Paulo Santos']" | |
| 47 | + Then the "tr[title='Paulo Santos'] td.actions a.icon-set-admin-role" button should be enabled | ... | ... |