Commit 9fa307afb19ea4f7eb7a1298449139c2306f1723
1 parent
803bee06
Exists in
master
and in
29 other branches
Fixed test: features/plugins.feature
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
features/plugins.feature
@@ -23,36 +23,36 @@ Feature: plugins | @@ -23,36 +23,36 @@ Feature: plugins | ||
23 | 23 | ||
24 | Scenario: a user must see the plugin\'s button in the control panel if the plugin is enabled | 24 | Scenario: a user must see the plugin\'s button in the control panel if the plugin is enabled |
25 | Given plugin TestPlugin is enabled on environment | 25 | Given plugin TestPlugin is enabled on environment |
26 | - And I go to Joao Silva's control panel | 26 | + And I go to joaosilva's control panel |
27 | Then I should see "Test plugin button" | 27 | Then I should see "Test plugin button" |
28 | 28 | ||
29 | Scenario: a user must see the plugin\'s tab in in the profile if the plugin is enabled | 29 | Scenario: a user must see the plugin\'s tab in in the profile if the plugin is enabled |
30 | Given plugin TestPlugin is enabled on environment | 30 | Given plugin TestPlugin is enabled on environment |
31 | - And I am on Joao Silva's profile | 31 | + And I am on joaosilva's profile |
32 | Then I should see "Test plugin tab" | 32 | Then I should see "Test plugin tab" |
33 | 33 | ||
34 | Scenario: a user must not see the plugin\'s button in the control panel if the plugin is disabled | 34 | Scenario: a user must not see the plugin\'s button in the control panel if the plugin is disabled |
35 | Given plugin TestPlugin is disabled on environment | 35 | Given plugin TestPlugin is disabled on environment |
36 | - And I go to Joao Silva's control panel | 36 | + And I go to joaosilva's control panel |
37 | Then I should not see "Test plugin button" | 37 | Then I should not see "Test plugin button" |
38 | 38 | ||
39 | Scenario: a user must not see the plugin\'s tab in in the profile if the plugin is disabled | 39 | Scenario: a user must not see the plugin\'s tab in in the profile if the plugin is disabled |
40 | Given plugin TestPlugin is disabled on environment | 40 | Given plugin TestPlugin is disabled on environment |
41 | - And I am on Joao Silva's profile | 41 | + And I am on joaosilva's profile |
42 | Then I should not see "Test plugin tab" | 42 | Then I should not see "Test plugin tab" |
43 | 43 | ||
44 | Scenario: an admin should be able to deactivate a plugin | 44 | Scenario: an admin should be able to deactivate a plugin |
45 | Given plugin TestPlugin is enabled on environment | 45 | Given plugin TestPlugin is enabled on environment |
46 | And I am logged in as admin | 46 | And I am logged in as admin |
47 | - When I go to the Control panel | 47 | + When I go to admin_user's control panel |
48 | Then I should see "Test plugin button" | 48 | Then I should see "Test plugin button" |
49 | - When I go to the profile | 49 | + When I go to admin_user's profile |
50 | Then I should see "Test plugin tab" | 50 | Then I should see "Test plugin tab" |
51 | And I go to the environment control panel | 51 | And I go to the environment control panel |
52 | And I follow "Plugins" | 52 | And I follow "Plugins" |
53 | And I uncheck "Test plugin" | 53 | And I uncheck "Test plugin" |
54 | And I press "Save changes" | 54 | And I press "Save changes" |
55 | - When I go to the Control panel | 55 | + When I go to admin_user's control panel |
56 | Then I should not see "Test plugin button" | 56 | Then I should not see "Test plugin button" |
57 | - When I go to the profile | 57 | + When I go to admin_user's profile |
58 | Then I should not see "Test plugin tab" | 58 | Then I should not see "Test plugin tab" |