Commit 9cb27e86b50f4fca432fdc47a8f841fad81c00ed
1 parent
2c34624b
Exists in
master
and in
27 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,7 +15,7 @@ Background: | ||
15 | Scenario: deactive user | 15 | Scenario: deactive user |
16 | When I follow "Deactivate user" within "tr[title='Joao Silva']" | 16 | When I follow "Deactivate user" within "tr[title='Joao Silva']" |
17 | And I confirm the "Do you want to deactivate this user?" dialog | 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 | @selenium | 20 | @selenium |
21 | Scenario: activate user | 21 | Scenario: activate user |
@@ -23,7 +23,7 @@ Background: | @@ -23,7 +23,7 @@ Background: | ||
23 | Given I confirm the "Do you want to deactivate this user?" dialog | 23 | Given I confirm the "Do you want to deactivate this user?" dialog |
24 | When I follow "Activate user" within "tr[title='Paulo Santos']" | 24 | When I follow "Activate user" within "tr[title='Paulo Santos']" |
25 | And I confirm the "Do you want to activate this user?" dialog | 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 | @selenium | 28 | @selenium |
29 | Scenario: remove user | 29 | Scenario: remove user |
@@ -36,7 +36,7 @@ Background: | @@ -36,7 +36,7 @@ Background: | ||
36 | Scenario: admin user | 36 | Scenario: admin user |
37 | When I follow "Set admin role" within "tr[title='Joao Silva']" | 37 | When I follow "Set admin role" within "tr[title='Joao Silva']" |
38 | And I confirm the "Do you want to set this user as administrator?" dialog | 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 | @selenium | 41 | @selenium |
42 | Scenario: unadmin user | 42 | Scenario: unadmin user |
@@ -44,4 +44,4 @@ Background: | @@ -44,4 +44,4 @@ Background: | ||
44 | And I confirm the "Do you want to set this user as administrator?" dialog | 44 | And I confirm the "Do you want to set this user as administrator?" dialog |
45 | When I follow "Reset admin role" within "tr[title='Paulo Santos']" | 45 | When I follow "Reset admin role" within "tr[title='Paulo Santos']" |
46 | And I confirm the "Do you want to reset this user as administrator?" dialog | 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 |