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 | 8 | Scenario: See links to edit all templates |
9 | 9 | Given I am logged in as admin |
10 | 10 | When I follow "Administration" |
11 | - And I follow "Edit Templates" | |
11 | + And I follow "Profile templates" | |
12 | 12 | Then I should see "Person template" link |
13 | 13 | And I should see "Community template" link |
14 | 14 | And I should see "Enterprise template" link |
... | ... | @@ -17,28 +17,28 @@ Feature: edit environment templates |
17 | 17 | Scenario: Go to control panel of person template |
18 | 18 | Given I am logged in as admin |
19 | 19 | When I follow "Administration" |
20 | - And I follow "Edit Templates" | |
20 | + And I follow "Profile templates" | |
21 | 21 | And I follow "Person template" |
22 | 22 | Then I should be on Person template's control panel |
23 | 23 | |
24 | 24 | Scenario: Go to control panel of enterprise template |
25 | 25 | Given I am logged in as admin |
26 | 26 | When I follow "Administration" |
27 | - And I follow "Edit Templates" | |
27 | + And I follow "Profile templates" | |
28 | 28 | And I follow "Enterprise template" |
29 | 29 | Then I should be on Enterprise template's control panel |
30 | 30 | |
31 | 31 | Scenario: Go to control panel of inactive enterprise template |
32 | 32 | Given I am logged in as admin |
33 | 33 | When I follow "Administration" |
34 | - And I follow "Edit Templates" | |
34 | + And I follow "Profile templates" | |
35 | 35 | And I follow "Inactive enterprise template" |
36 | 36 | Then I should be on Inactive Enterprise template's control panel |
37 | 37 | |
38 | 38 | Scenario: Go to control panel of community template |
39 | 39 | Given I am logged in as admin |
40 | 40 | When I follow "Administration" |
41 | - And I follow "Edit Templates" | |
41 | + And I follow "Profile templates" | |
42 | 42 | And I follow "Community template" |
43 | 43 | Then I should be on Community template's control panel |
44 | 44 | |
... | ... | @@ -46,7 +46,7 @@ Feature: edit environment templates |
46 | 46 | Given that the default environment have no Inactive Enterprise template |
47 | 47 | And I am logged in as admin |
48 | 48 | When I follow "Administration" |
49 | - And I follow "Edit Templates" | |
49 | + And I follow "Profile templates" | |
50 | 50 | Then I should see "Person template" link |
51 | 51 | And I should see "Community template" link |
52 | 52 | And I should see "Enterprise template" link | ... | ... |
features/environment_name.feature
... | ... | @@ -6,7 +6,7 @@ Feature: setting environment name |
6 | 6 | Scenario: setting environment name through administration panel |
7 | 7 | Given I am logged in as admin |
8 | 8 | When I follow "Administration" |
9 | - And I follow "Edit environment settings" | |
9 | + And I follow "Environment settings" | |
10 | 10 | And I fill in "Site name" with "My environment" |
11 | 11 | And I press "Save" |
12 | 12 | Then I should see "My environment" within "title" | ... | ... |
features/export_users.feature
... | ... | @@ -10,14 +10,14 @@ Feature: export users |
10 | 10 | Scenario: Export users as XML |
11 | 11 | Given I am logged in as admin |
12 | 12 | When I follow "Administration" |
13 | - And I follow "Manage users" | |
13 | + And I follow "Users" | |
14 | 14 | And I follow "[XML]" |
15 | 15 | Then I should see "ultraje" |
16 | 16 | |
17 | 17 | Scenario: Export users as CSV |
18 | 18 | Given I am logged in as admin |
19 | 19 | When I follow "Administration" |
20 | - And I follow "Manage users" | |
20 | + And I follow "Users" | |
21 | 21 | And I follow "[CSV]" |
22 | 22 | Then I should see "name;email" |
23 | 23 | And I should see "ultraje" | ... | ... |
features/manage_categories.feature
... | ... | @@ -14,7 +14,7 @@ Feature: manage categories |
14 | 14 | | Development | services | |
15 | 15 | And I am logged in as admin |
16 | 16 | And I am on the environment control panel |
17 | - And I follow "Manage categories" | |
17 | + And I follow "Categories" | |
18 | 18 | |
19 | 19 | Scenario: load only top level categories |
20 | 20 | Then I should see "Products" | ... | ... |
features/plugins.feature
... | ... | @@ -49,7 +49,7 @@ Feature: plugins |
49 | 49 | When I go to the profile |
50 | 50 | Then I should see "Test plugin tab" |
51 | 51 | And I go to the environment control panel |
52 | - And I follow "Enable/disable plugins" | |
52 | + And I follow "Plugins" | |
53 | 53 | And I uncheck "Test plugin" |
54 | 54 | And I press "Save changes" |
55 | 55 | When I go to the Control panel | ... | ... |
features/roles.feature
... | ... | @@ -5,26 +5,26 @@ Feature: manage roles |
5 | 5 | Scenario: create new role |
6 | 6 | Given I am logged in as admin |
7 | 7 | And I go to the environment control panel |
8 | - And I follow "Manage User roles" | |
8 | + And I follow "User roles" | |
9 | 9 | Then I should not see "My new role" |
10 | 10 | And I follow "Create a new role" |
11 | 11 | And I fill in "Name" with "My new role" |
12 | 12 | And I check "Publish content" |
13 | 13 | And I press "Create role" |
14 | 14 | And I go to the environment control panel |
15 | - And I follow "Manage User roles" | |
15 | + And I follow "User roles" | |
16 | 16 | Then I should see "My new role" |
17 | 17 | |
18 | 18 | Scenario: edit a role |
19 | 19 | Given I am logged in as admin |
20 | 20 | And I go to the environment control panel |
21 | - And I follow "Manage User roles" | |
21 | + And I follow "User roles" | |
22 | 22 | Then I should not see "My new role" |
23 | 23 | And I follow "Profile Administrator" |
24 | 24 | And I follow "Edit" |
25 | 25 | And I fill in "Name" with "My new role" |
26 | 26 | And I press "Save changes" |
27 | 27 | And I go to the environment control panel |
28 | - And I follow "Manage User roles" | |
28 | + And I follow "User roles" | |
29 | 29 | Then I should see "My new role" |
30 | 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 | 18 | Scenario: Send e-mail to members |
19 | 19 | Given I am logged in as admin |
20 | 20 | When I follow "Administration" |
21 | - And I follow "Manage users" | |
21 | + And I follow "Users" | |
22 | 22 | And I follow "Send e-mail to users" |
23 | 23 | And I fill in "Subject" with "Hello, user!" |
24 | 24 | And I fill in "body" with "We have some news" |
... | ... | @@ -28,7 +28,7 @@ Feature: send emails to environment members users |
28 | 28 | Scenario: Not send e-mail to members if subject is blank |
29 | 29 | Given I am logged in as admin |
30 | 30 | When I follow "Administration" |
31 | - And I follow "Manage users" | |
31 | + And I follow "Users" | |
32 | 32 | And I follow "Send e-mail to users" |
33 | 33 | And I fill in "body" with "We have some news" |
34 | 34 | When I press "Send" |
... | ... | @@ -37,7 +37,7 @@ Feature: send emails to environment members users |
37 | 37 | Scenario: Not send e-mail to members if body is blank |
38 | 38 | Given I am logged in as admin |
39 | 39 | When I follow "Administration" |
40 | - And I follow "Manage users" | |
40 | + And I follow "Users" | |
41 | 41 | And I follow "Send e-mail to users" |
42 | 42 | And I fill in "Subject" with "Hello, user!" |
43 | 43 | When I press "Send" |
... | ... | @@ -46,7 +46,7 @@ Feature: send emails to environment members users |
46 | 46 | Scenario: Cancel creation of mailing |
47 | 47 | Given I am logged in as admin |
48 | 48 | When I follow "Administration" |
49 | - And I follow "Manage users" | |
49 | + And I follow "Users" | |
50 | 50 | And I follow "Send e-mail to users" |
51 | 51 | Then I should be on /admin/users/send_mail |
52 | 52 | When I follow "Cancel e-mail" | ... | ... |