Commit ae02e837a901560c46bb0719d40164a74a336391

Authored by Antonio Terceiro
1 parent b0509621

Fixing tests that depended on old layout

features/create_community.feature
@@ -54,7 +54,8 @@ Feature: create community @@ -54,7 +54,8 @@ Feature: create community
54 And I choose "Approve" 54 And I choose "Approve"
55 When I press "Ok!" 55 When I press "Ok!"
56 Then I should not see "admin_user wants to create community Community for approval" 56 Then I should not see "admin_user wants to create community Community for approval"
57 - When I follow "My groups" 57 + When I follow "Control panel"
  58 + And I follow "Manage my groups"
58 Then I should see "Community for approval" 59 Then I should see "Community for approval"
59 60
60 Scenario: environment admin rejects new community task 61 Scenario: environment admin rejects new community task
@@ -67,7 +68,8 @@ Feature: create community @@ -67,7 +68,8 @@ Feature: create community
67 And I choose "Reject" 68 And I choose "Reject"
68 When I press "Ok!" 69 When I press "Ok!"
69 Then I should not see "admin_user wants to create community Community for approval" 70 Then I should not see "admin_user wants to create community Community for approval"
70 - When I follow "My groups" 71 + When I follow "Control panel"
  72 + And I follow "Manage my groups"
71 Then I should not see "Community for approval" 73 Then I should not see "Community for approval"
72 74
73 Scenario: new community is listed after approval 75 Scenario: new community is listed after approval
@@ -75,7 +77,8 @@ Feature: create community @@ -75,7 +77,8 @@ Feature: create community
75 And feature "admin_must_approve_new_communities" is enabled on environment 77 And feature "admin_must_approve_new_communities" is enabled on environment
76 When I create community "Community for approval" 78 When I create community "Community for approval"
77 And I approve community "Community for approval" 79 And I approve community "Community for approval"
78 - When I follow "My groups" 80 + When I follow "Control panel"
  81 + And I follow "Manage my groups"
79 Then I should see "Community for approval" 82 Then I should see "Community for approval"
80 83
81 Scenario: new community is not listed after rejection 84 Scenario: new community is not listed after rejection
@@ -83,7 +86,8 @@ Feature: create community @@ -83,7 +86,8 @@ Feature: create community
83 And feature "admin_must_approve_new_communities" is enabled on environment 86 And feature "admin_must_approve_new_communities" is enabled on environment
84 When I create community "Community for approval" 87 When I create community "Community for approval"
85 And I reject community "Community for approval" 88 And I reject community "Community for approval"
86 - When I follow "My groups" 89 + When I follow "Control panel"
  90 + And I follow "Manage my groups"
87 Then I should not see "Community for approval" 91 Then I should not see "Community for approval"
88 92
89 Scenario: environment admin accepts new community task but identifier was already taken 93 Scenario: environment admin accepts new community task but identifier was already taken
features/step_definitions/create_community_steps.rb
1 Given /^I create community "(.+)"$/ do |community| 1 Given /^I create community "(.+)"$/ do |community|
2 - click_link('My groups') 2 + click_link('Control panel')
  3 + click_link('Manage my groups')
3 click_link('Create a new community') 4 click_link('Create a new community')
4 fill_in("Name", :with => community) 5 fill_in("Name", :with => community)
5 click_button("Create") 6 click_button("Create")