Commit 65f47c6a44c49482309a84c0d14f6547ab1f2a94
1 parent
649476cf
Exists in
master
and in
28 other branches
Fix link names in tests
This sucks. We should probably have a different solution for specifying links to be followed in integration tests without having to refer to them by their exact text.
Showing
7 changed files
with
19 additions
and
19 deletions
Show diff stats
features/edit_environment_templates.feature
@@ -8,7 +8,7 @@ Feature: edit environment templates | @@ -8,7 +8,7 @@ Feature: edit environment templates | ||
8 | Scenario: See links to edit all templates | 8 | Scenario: See links to edit all templates |
9 | Given I am logged in as admin | 9 | Given I am logged in as admin |
10 | When I follow "Administration" | 10 | When I follow "Administration" |
11 | - And I follow "Edit Templates" | 11 | + And I follow "Profile templates" |
12 | Then I should see "Person template" link | 12 | Then I should see "Person template" link |
13 | And I should see "Community template" link | 13 | And I should see "Community template" link |
14 | And I should see "Enterprise template" link | 14 | And I should see "Enterprise template" link |
@@ -17,28 +17,28 @@ Feature: edit environment templates | @@ -17,28 +17,28 @@ Feature: edit environment templates | ||
17 | Scenario: Go to control panel of person template | 17 | Scenario: Go to control panel of person template |
18 | Given I am logged in as admin | 18 | Given I am logged in as admin |
19 | When I follow "Administration" | 19 | When I follow "Administration" |
20 | - And I follow "Edit Templates" | 20 | + And I follow "Profile templates" |
21 | And I follow "Person template" | 21 | And I follow "Person template" |
22 | Then I should be on Person template's control panel | 22 | Then I should be on Person template's control panel |
23 | 23 | ||
24 | Scenario: Go to control panel of enterprise template | 24 | Scenario: Go to control panel of enterprise template |
25 | Given I am logged in as admin | 25 | Given I am logged in as admin |
26 | When I follow "Administration" | 26 | When I follow "Administration" |
27 | - And I follow "Edit Templates" | 27 | + And I follow "Profile templates" |
28 | And I follow "Enterprise template" | 28 | And I follow "Enterprise template" |
29 | Then I should be on Enterprise template's control panel | 29 | Then I should be on Enterprise template's control panel |
30 | 30 | ||
31 | Scenario: Go to control panel of inactive enterprise template | 31 | Scenario: Go to control panel of inactive enterprise template |
32 | Given I am logged in as admin | 32 | Given I am logged in as admin |
33 | When I follow "Administration" | 33 | When I follow "Administration" |
34 | - And I follow "Edit Templates" | 34 | + And I follow "Profile templates" |
35 | And I follow "Inactive enterprise template" | 35 | And I follow "Inactive enterprise template" |
36 | Then I should be on Inactive Enterprise template's control panel | 36 | Then I should be on Inactive Enterprise template's control panel |
37 | 37 | ||
38 | Scenario: Go to control panel of community template | 38 | Scenario: Go to control panel of community template |
39 | Given I am logged in as admin | 39 | Given I am logged in as admin |
40 | When I follow "Administration" | 40 | When I follow "Administration" |
41 | - And I follow "Edit Templates" | 41 | + And I follow "Profile templates" |
42 | And I follow "Community template" | 42 | And I follow "Community template" |
43 | Then I should be on Community template's control panel | 43 | Then I should be on Community template's control panel |
44 | 44 | ||
@@ -46,7 +46,7 @@ Feature: edit environment templates | @@ -46,7 +46,7 @@ Feature: edit environment templates | ||
46 | Given that the default environment have no Inactive Enterprise template | 46 | Given that the default environment have no Inactive Enterprise template |
47 | And I am logged in as admin | 47 | And I am logged in as admin |
48 | When I follow "Administration" | 48 | When I follow "Administration" |
49 | - And I follow "Edit Templates" | 49 | + And I follow "Profile templates" |
50 | Then I should see "Person template" link | 50 | Then I should see "Person template" link |
51 | And I should see "Community template" link | 51 | And I should see "Community template" link |
52 | And I should see "Enterprise template" link | 52 | And I should see "Enterprise template" link |
features/environment_name.feature
@@ -6,7 +6,7 @@ Feature: setting environment name | @@ -6,7 +6,7 @@ Feature: setting environment name | ||
6 | Scenario: setting environment name through administration panel | 6 | Scenario: setting environment name through administration panel |
7 | Given I am logged in as admin | 7 | Given I am logged in as admin |
8 | When I follow "Administration" | 8 | When I follow "Administration" |
9 | - And I follow "Edit environment settings" | 9 | + And I follow "Environment settings" |
10 | And I fill in "Site name" with "My environment" | 10 | And I fill in "Site name" with "My environment" |
11 | And I press "Save" | 11 | And I press "Save" |
12 | Then I should see "My environment" within "title" | 12 | Then I should see "My environment" within "title" |
features/export_users.feature
@@ -10,14 +10,14 @@ Feature: export users | @@ -10,14 +10,14 @@ Feature: export users | ||
10 | Scenario: Export users as XML | 10 | Scenario: Export users as XML |
11 | Given I am logged in as admin | 11 | Given I am logged in as admin |
12 | When I follow "Administration" | 12 | When I follow "Administration" |
13 | - And I follow "Manage users" | 13 | + And I follow "Users" |
14 | And I follow "[XML]" | 14 | And I follow "[XML]" |
15 | Then I should see "ultraje" | 15 | Then I should see "ultraje" |
16 | 16 | ||
17 | Scenario: Export users as CSV | 17 | Scenario: Export users as CSV |
18 | Given I am logged in as admin | 18 | Given I am logged in as admin |
19 | When I follow "Administration" | 19 | When I follow "Administration" |
20 | - And I follow "Manage users" | 20 | + And I follow "Users" |
21 | And I follow "[CSV]" | 21 | And I follow "[CSV]" |
22 | Then I should see "name;email" | 22 | Then I should see "name;email" |
23 | And I should see "ultraje" | 23 | And I should see "ultraje" |
features/manage_categories.feature
@@ -14,7 +14,7 @@ Feature: manage categories | @@ -14,7 +14,7 @@ Feature: manage categories | ||
14 | | Development | services | | 14 | | Development | services | |
15 | And I am logged in as admin | 15 | And I am logged in as admin |
16 | And I am on the environment control panel | 16 | And I am on the environment control panel |
17 | - And I follow "Manage categories" | 17 | + And I follow "Categories" |
18 | 18 | ||
19 | Scenario: load only top level categories | 19 | Scenario: load only top level categories |
20 | Then I should see "Products" | 20 | Then I should see "Products" |
features/plugins.feature
@@ -49,7 +49,7 @@ Feature: plugins | @@ -49,7 +49,7 @@ Feature: plugins | ||
49 | When I go to the profile | 49 | When I go to the 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 "Enable/disable 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 the Control panel |
features/roles.feature
@@ -5,26 +5,26 @@ Feature: manage roles | @@ -5,26 +5,26 @@ Feature: manage roles | ||
5 | Scenario: create new role | 5 | Scenario: create new role |
6 | Given I am logged in as admin | 6 | Given I am logged in as admin |
7 | And I go to the environment control panel | 7 | And I go to the environment control panel |
8 | - And I follow "Manage User roles" | 8 | + And I follow "User roles" |
9 | Then I should not see "My new role" | 9 | Then I should not see "My new role" |
10 | And I follow "Create a new role" | 10 | And I follow "Create a new role" |
11 | And I fill in "Name" with "My new role" | 11 | And I fill in "Name" with "My new role" |
12 | And I check "Publish content" | 12 | And I check "Publish content" |
13 | And I press "Create role" | 13 | And I press "Create role" |
14 | And I go to the environment control panel | 14 | And I go to the environment control panel |
15 | - And I follow "Manage User roles" | 15 | + And I follow "User roles" |
16 | Then I should see "My new role" | 16 | Then I should see "My new role" |
17 | 17 | ||
18 | Scenario: edit a role | 18 | Scenario: edit a role |
19 | Given I am logged in as admin | 19 | Given I am logged in as admin |
20 | And I go to the environment control panel | 20 | And I go to the environment control panel |
21 | - And I follow "Manage User roles" | 21 | + And I follow "User roles" |
22 | Then I should not see "My new role" | 22 | Then I should not see "My new role" |
23 | And I follow "Profile Administrator" | 23 | And I follow "Profile Administrator" |
24 | And I follow "Edit" | 24 | And I follow "Edit" |
25 | And I fill in "Name" with "My new role" | 25 | And I fill in "Name" with "My new role" |
26 | And I press "Save changes" | 26 | And I press "Save changes" |
27 | And I go to the environment control panel | 27 | And I go to the environment control panel |
28 | - And I follow "Manage User roles" | 28 | + And I follow "User roles" |
29 | Then I should see "My new role" | 29 | Then I should see "My new role" |
30 | And I should not see "Profile Administrator" | 30 | And I should not see "Profile Administrator" |
features/send_email_to_environment_members.feature
@@ -18,7 +18,7 @@ Feature: send emails to environment members users | @@ -18,7 +18,7 @@ Feature: send emails to environment members users | ||
18 | Scenario: Send e-mail to members | 18 | Scenario: Send e-mail to members |
19 | Given I am logged in as admin | 19 | Given I am logged in as admin |
20 | When I follow "Administration" | 20 | When I follow "Administration" |
21 | - And I follow "Manage users" | 21 | + And I follow "Users" |
22 | And I follow "Send e-mail to users" | 22 | And I follow "Send e-mail to users" |
23 | And I fill in "Subject" with "Hello, user!" | 23 | And I fill in "Subject" with "Hello, user!" |
24 | And I fill in "body" with "We have some news" | 24 | And I fill in "body" with "We have some news" |
@@ -28,7 +28,7 @@ Feature: send emails to environment members users | @@ -28,7 +28,7 @@ Feature: send emails to environment members users | ||
28 | Scenario: Not send e-mail to members if subject is blank | 28 | Scenario: Not send e-mail to members if subject is blank |
29 | Given I am logged in as admin | 29 | Given I am logged in as admin |
30 | When I follow "Administration" | 30 | When I follow "Administration" |
31 | - And I follow "Manage users" | 31 | + And I follow "Users" |
32 | And I follow "Send e-mail to users" | 32 | And I follow "Send e-mail to users" |
33 | And I fill in "body" with "We have some news" | 33 | And I fill in "body" with "We have some news" |
34 | When I press "Send" | 34 | When I press "Send" |
@@ -37,7 +37,7 @@ Feature: send emails to environment members users | @@ -37,7 +37,7 @@ Feature: send emails to environment members users | ||
37 | Scenario: Not send e-mail to members if body is blank | 37 | Scenario: Not send e-mail to members if body is blank |
38 | Given I am logged in as admin | 38 | Given I am logged in as admin |
39 | When I follow "Administration" | 39 | When I follow "Administration" |
40 | - And I follow "Manage users" | 40 | + And I follow "Users" |
41 | And I follow "Send e-mail to users" | 41 | And I follow "Send e-mail to users" |
42 | And I fill in "Subject" with "Hello, user!" | 42 | And I fill in "Subject" with "Hello, user!" |
43 | When I press "Send" | 43 | When I press "Send" |
@@ -46,7 +46,7 @@ Feature: send emails to environment members users | @@ -46,7 +46,7 @@ Feature: send emails to environment members users | ||
46 | Scenario: Cancel creation of mailing | 46 | Scenario: Cancel creation of mailing |
47 | Given I am logged in as admin | 47 | Given I am logged in as admin |
48 | When I follow "Administration" | 48 | When I follow "Administration" |
49 | - And I follow "Manage users" | 49 | + And I follow "Users" |
50 | And I follow "Send e-mail to users" | 50 | And I follow "Send e-mail to users" |
51 | Then I should be on /admin/users/send_mail | 51 | Then I should be on /admin/users/send_mail |
52 | When I follow "Cancel e-mail" | 52 | When I follow "Cancel e-mail" |