diff options
author | Go MAEDA <maeda@farend.jp> | 2021-03-26 02:19:02 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-03-26 02:19:02 +0000 |
commit | 9c56418f4e72a278efba6c5a4403ae4157d02421 (patch) | |
tree | 6074a9b3febf8f9748c69654acd699c508639c36 /test/functional/wiki_controller_test.rb | |
parent | f4a521bfb655427f6d3b313fb0cc1b44de751a03 (diff) | |
download | redmine-9c56418f4e72a278efba6c5a4403ae4157d02421.tar.gz redmine-9c56418f4e72a278efba6c5a4403ae4157d02421.zip |
Add edit button to Wiki sidebar (#32629).
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@20850 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 8ae7ad509..73b1e3658 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -46,6 +46,14 @@ class WikiControllerTest < Redmine::ControllerTest assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation.txt' end + def test_edit_sidebar_link + Role.anonymous.add_permission! :edit_wiki_pages + Role.anonymous.add_permission! :protect_wiki_pages + get :show, :params => {:project_id => 'ecookbook'} + assert_response :success + assert_select 'a[href=?]', '/projects/ecookbook/wiki/sidebar/edit' + end + def test_show_page_with_name get :show, :params => {:project_id => 1, :id => 'Another_page'} assert_response :success |