Structured Document list for more flexible UI design with CSS (#17924).

Patch by Yonghwan SO and Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21403 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2022-02-08 02:40:24 +00:00
parent d7dd703763
commit 6f6d380e74
5 changed files with 25 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
assert_select '#content' do
# ascending order of DocumentCategory#id.
['Uncategorized', 'Technical documentation'].each_with_index do |text, idx|
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
end
end
end
@@ -74,7 +74,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
assert_select '#content' do
# descending order of date.
['2007-03-05', '2007-02-12'].each_with_index do |text, idx|
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
end
end
end
@@ -91,7 +91,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
assert_select '#content' do
# ascending order of title.
['A', 'T'].each_with_index do |text, idx|
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
end
end
end
@@ -108,7 +108,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
assert_select '#content' do
# ascending order of author.
['John Smith', 'Redmine Admin'].each_with_index do |text, idx|
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
end
end
end