Commit 944bfd33ad785cad9299fd529e546e92859135f2
1 parent
0ed4c865
Exists in
master
and in
23 other branches
edit_environment_templates.feature
Showing
2 changed files
with
31 additions
and
35 deletions
Show diff stats
features/edit_environment_templates.feature
| ... | ... | @@ -4,50 +4,46 @@ Feature: edit environment templates |
| 4 | 4 | |
| 5 | 5 | Background: |
| 6 | 6 | Given that the default environment have all profile templates |
| 7 | + And I am logged in as admin | |
| 8 | + And I follow "Administration" | |
| 7 | 9 | |
| 10 | + @selenium | |
| 8 | 11 | Scenario: See links to edit all templates |
| 9 | - Given I am logged in as admin | |
| 10 | - When I follow "Administration" | |
| 11 | - And I follow "Profile templates" | |
| 12 | - Then I should see "Person template" link | |
| 13 | - And I should see "Community template" link | |
| 14 | - And I should see "Enterprise template" link | |
| 15 | - And I should see "Inactive Enterprise template" link | |
| 12 | + Given I follow "Profile templates" | |
| 13 | + Then I should see "Person template" | |
| 14 | + And I should see "Community template" | |
| 15 | + And I should see "Enterprise template" | |
| 16 | + And I should see "Inactive Enterprise template" | |
| 16 | 17 | |
| 18 | + @selenium | |
| 17 | 19 | Scenario: Go to control panel of person template |
| 18 | - Given I am logged in as admin | |
| 19 | - When I follow "Administration" | |
| 20 | - And I follow "Profile templates" | |
| 20 | + Given I follow "Profile templates" | |
| 21 | 21 | And I follow "Person template" |
| 22 | - Then I should be on Person template's control panel | |
| 22 | + Then I should be on colivre.net_person_template's control panel | |
| 23 | 23 | |
| 24 | + @selenium | |
| 24 | 25 | Scenario: Go to control panel of enterprise template |
| 25 | - Given I am logged in as admin | |
| 26 | - When I follow "Administration" | |
| 27 | - And I follow "Profile templates" | |
| 26 | + Given I follow "Profile templates" | |
| 28 | 27 | And I follow "Enterprise template" |
| 29 | - Then I should be on Enterprise template's control panel | |
| 28 | + Then I should be on colivre.net_enterprise_template's control panel | |
| 30 | 29 | |
| 30 | + @selenium | |
| 31 | 31 | Scenario: Go to control panel of inactive enterprise template |
| 32 | - Given I am logged in as admin | |
| 33 | - When I follow "Administration" | |
| 34 | - And I follow "Profile templates" | |
| 35 | - And I follow "Inactive enterprise template" | |
| 36 | - Then I should be on Inactive Enterprise template's control panel | |
| 32 | + Given I follow "Profile templates" | |
| 33 | + And I follow "Inactive Enterprise template" | |
| 34 | + Then I should be on colivre.net_inactive_enterprise_template's control panel | |
| 37 | 35 | |
| 36 | + @selenium | |
| 38 | 37 | Scenario: Go to control panel of community template |
| 39 | - Given I am logged in as admin | |
| 40 | - When I follow "Administration" | |
| 41 | - And I follow "Profile templates" | |
| 42 | - And I follow "Community template" | |
| 43 | - Then I should be on Community template's control panel | |
| 38 | + Given I follow "Profile templates" | |
| 39 | + When I follow "Community template" | |
| 40 | + Then I should be on colivre.net_community_template's control panel | |
| 44 | 41 | |
| 42 | + @selenium | |
| 45 | 43 | Scenario: Not see link to edit an unexistent template |
| 46 | - Given that the default environment have no Inactive Enterprise template | |
| 47 | - And I am logged in as admin | |
| 48 | - When I follow "Administration" | |
| 49 | - And I follow "Profile templates" | |
| 50 | - Then I should see "Person template" link | |
| 51 | - And I should see "Community template" link | |
| 52 | - And I should see "Enterprise template" link | |
| 53 | - And I should not see "Inactive enterprise template" link | |
| 44 | + Given I follow "Profile templates" | |
| 45 | + And that the default environment have no Inactive Enterprise template | |
| 46 | + Then I should see "Person template" | |
| 47 | + And I should see "Community template" | |
| 48 | + And I should see "Enterprise template" | |
| 49 | + And I should not see "Inactive enterprise template" | ... | ... |
features/support/paths.rb
| ... | ... | @@ -46,7 +46,7 @@ module NavigationHelpers |
| 46 | 46 | '/myprofile/%s/cms/new?type=%s' % [Profile.find_by_name($1).identifier,$2] |
| 47 | 47 | |
| 48 | 48 | when /^(.*)'s sitemap/ |
| 49 | - '/profile/%s/sitemap' % Profile.find_by_name($1).identifier | |
| 49 | + '/profile/%s/sitemap' % $1 | |
| 50 | 50 | |
| 51 | 51 | when /^(.*)'s profile$/ |
| 52 | 52 | '/profile/' + $1 |
| ... | ... | @@ -82,7 +82,7 @@ module NavigationHelpers |
| 82 | 82 | '/search/%s' % $1 |
| 83 | 83 | |
| 84 | 84 | when /^(.+)'s cms/ |
| 85 | - '/myprofile/%s/cms' % Profile.find_by_name($1).identifier | |
| 85 | + '/myprofile/%s/cms' % $1 | |
| 86 | 86 | |
| 87 | 87 | when /^"(.+)" edit page/ |
| 88 | 88 | article = Article.find_by_name($1) | ... | ... |