Skip to content

Commit

Permalink
[webui] verify issue #379 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Oct 26, 2013
1 parent b02ea33 commit b232d57
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/api/test/functional/webui/package_controller_test.rb
Expand Up @@ -104,4 +104,29 @@ def fill_comment
flash_message.must_equal 'Error getting diff: revision is empty'
end

test "group can modify" do
login_adrian
# verify we do not test ghosts
visit webui_engine.package_users_path(package: 'TestPack', project: 'home:Iggy')
page.wont_have_link 'Add group'
logout

login_Iggy
visit webui_engine.package_users_path(package: 'TestPack', project: 'home:Iggy')
click_link 'Add group'
page.must_have_text 'Add New Group to TestPack'
fill_in 'groupid', with: 'test_group'
click_button 'Add group'
flash_message.must_equal 'Added group test_group with role maintainer to package TestPack'
within('#group_table_wrapper') do
page.must_have_link 'test_group'
end
logout

# now test adrian can modify it for real
login_adrian
visit webui_engine.package_users_path(package: 'TestPack', project: 'home:Iggy')
page.must_have_link 'Add group'
end

end

0 comments on commit b232d57

Please sign in to comment.