summaryrefslogtreecommitdiffstats
path: root/test/functional/users_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-28 23:44:28 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-28 23:44:28 +0000
commit32dce42b71b720f1dc37e5b6f9d795fe7f5e0712 (patch)
treed059398c8d2a7e4db5fa52a3e11087aa43ab84d9 /test/functional/users_controller_test.rb
parent72e1451159206af1c335b23e0c1e5bf9ed84bc85 (diff)
downloadredmine-32dce42b71b720f1dc37e5b6f9d795fe7f5e0712.tar.gz
redmine-32dce42b71b720f1dc37e5b6f9d795fe7f5e0712.zip
Show projects using a table instead of an unordered list in the user profile page (#31066).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18012 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r--test/functional/users_controller_test.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 2b15af1ba..1e8a75042 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -173,8 +173,20 @@ class UsersControllerTest < Redmine::ControllerTest
get :show, :params => {:id => 2}
assert_response :success
- # membership of private project admin can see
- assert_select 'li a', :text => "OnlineStore"
+ assert_select 'table.list.projects>tbody' do
+ assert_select 'tr:nth-of-type(1)' do
+ assert_select 'td:nth-of-type(1)>span>a', :text => 'eCookbook'
+ assert_select 'td:nth-of-type(2)', :text => 'Manager'
+ end
+ assert_select 'tr:nth-of-type(2)' do
+ assert_select 'td:nth-of-type(1)>span>a', :text => 'Private child of eCookbook'
+ assert_select 'td:nth-of-type(2)', :text => 'Manager'
+ end
+ assert_select 'tr:nth-of-type(3)' do
+ assert_select 'td:nth-of-type(1)>span>a', :text => 'OnlineStore'
+ assert_select 'td:nth-of-type(2)', :text => 'Developer'
+ end
+ end
end
def test_show_current_should_require_authentication