diff options
author | Go MAEDA <maeda@farend.jp> | 2020-06-20 06:50:28 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-06-20 06:50:28 +0000 |
commit | 925fbe92633a0484f04d06ec7cdaf7ca88f0c354 (patch) | |
tree | 981c425938faf16ad6f5795cad7d112dea85d4a5 /test/functional/wiki_controller_test.rb | |
parent | ba6ef9b5b6ea8ba13b24ec8df63b0ef19324f3d2 (diff) | |
download | redmine-925fbe92633a0484f04d06ec7cdaf7ca88f0c354.tar.gz redmine-925fbe92633a0484f04d06ec7cdaf7ca88f0c354.zip |
Ordering wiki pages should not be case sensitive (#31287).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19831 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index b75bdaae8..d299c357f 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -995,11 +995,11 @@ class WikiControllerTest < Redmine::ControllerTest end assert_select 'ul.pages-hierarchy' do - assert_select 'li' do - assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation', :text => 'CookBook documentation' + assert_select 'li:nth-child(1) > a[href=?]', '/projects/ecookbook/wiki/Another_page', :text => 'Another page' + assert_select 'li:nth-child(2)' do + assert_select '> a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation', :text => 'CookBook documentation' assert_select 'ul li a[href=?]', '/projects/ecookbook/wiki/Page_with_an_inline_image', :text => 'Page with an inline image' end - assert_select 'li a[href=?]', '/projects/ecookbook/wiki/Another_page', :text => 'Another page' end end @@ -1015,6 +1015,11 @@ class WikiControllerTest < Redmine::ControllerTest assert_response :success assert_equal "text/html", @response.media_type + assert_select 'ul.pages-hierarchy' do + assert_select 'li:nth-child(1) > a[href=?]', '#Another_page', :text => 'Another page' + assert_select 'li:nth-child(2) > a[href=?]', '#CookBook_documentation', :text => 'CookBook documentation' + assert_select 'li:nth-child(3) > a[href=?]', '#Page_with_sections', :text => 'Page with sections' + end assert_select "a[name=?]", "CookBook_documentation" assert_select "a[name=?]", "Another_page" assert_select "a[name=?]", "Page_with_an_inline_image" |