Merged r23026 from trunk to 5.1-stable (#41217).

git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23031 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-09-07 04:10:21 +00:00
parent 9bdce9a821
commit 6b736fe533
2 changed files with 30 additions and 4 deletions

View File

@@ -52,4 +52,22 @@ class ProjectsTest < Redmine::IntegrationTest
assert_response 404
end
end
def test_list_layout_when_show_projects_scheduled_for_deletion
project = Project.find(1)
project.update_attribute :status, Project::STATUS_SCHEDULED_FOR_DELETION
log_user('admin', 'admin')
get '/admin/projects', :params => { :f => ['status'], :v => { 'status' => ['10'] } }
assert_response :success
assert_select '#project-1' do
assert_select 'td.checkbox.hide-when-print'
assert_select 'td.name'
assert_select 'td.identifier'
assert_select 'td.short_description'
assert_select 'td.buttons', text: ''
end
end
end