Ability to manage and remove group as owner outside of admin area
This commit is contained in:
parent
591e094e06
commit
e6002bdaff
9 changed files with 117 additions and 8 deletions
|
@ -24,3 +24,9 @@ Feature: Groups
|
|||
When I visit group people page
|
||||
And I select user "John" from list with role "Reporter"
|
||||
Then I should see user "John" in team list
|
||||
|
||||
Scenario: I should see edit group page
|
||||
When I visit group settings page
|
||||
And I change group name
|
||||
Then I should see new group name
|
||||
|
||||
|
|
|
@ -82,6 +82,17 @@ class Groups < Spinach::FeatureSteps
|
|||
current_path.should == group_path(Group.last)
|
||||
end
|
||||
|
||||
And 'I change group name' do
|
||||
fill_in 'group_name', :with => 'new-name'
|
||||
click_button "Save group"
|
||||
end
|
||||
|
||||
Then 'I should see new group name' do
|
||||
within ".navbar-gitlab" do
|
||||
page.should have_content "group: new-name"
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def current_group
|
||||
|
|
|
@ -25,6 +25,10 @@ module SharedPaths
|
|||
visit people_group_path(current_group)
|
||||
end
|
||||
|
||||
When 'I visit group settings page' do
|
||||
visit edit_group_path(current_group)
|
||||
end
|
||||
|
||||
# ----------------------------------------
|
||||
# Dashboard
|
||||
# ----------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue