From d212de6900390bca014e45263ce23b2f5bf75625 Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Tue, 27 Oct 2026 20:22:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=8C=96=E5=BE=85=E5=8A=9E=E9=BB=98=E8=AE=A4=E5=88=97=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按页面当前调整结果更新系统化待办默认列宽并补充回归测试。 --- .../pages/systemization-todos.blade.php | 8 ++--- .../Business/SystemizationTodosTest.php | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/resources/views/business/pages/systemization-todos.blade.php b/resources/views/business/pages/systemization-todos.blade.php index df15fad0..9b9333dc 100644 --- a/resources/views/business/pages/systemization-todos.blade.php +++ b/resources/views/business/pages/systemization-todos.blade.php @@ -519,10 +519,10 @@ - - - - + + + + diff --git a/tests/Feature/Business/SystemizationTodosTest.php b/tests/Feature/Business/SystemizationTodosTest.php index 49eddb8d..e9500629 100644 --- a/tests/Feature/Business/SystemizationTodosTest.php +++ b/tests/Feature/Business/SystemizationTodosTest.php @@ -230,6 +230,36 @@ class SystemizationTodosTest extends FeatureTestCase ); } + public function test_default_column_widths_match_the_shared_todo_layout(): void + { + $this->loginAs(); + + $response = $this->get(route('business.pages.show', [ + 'section' => 'other', + 'page' => 'systemization-todos', + ]))->assertOk(); + + $defaults = [ + 'type' => 94, + 'section' => 212, + 'sequence' => 94, + 'title' => 330, + 'owner' => 80, + 'assignee' => 80, + 'start_date' => 88, + 'due_date' => 88, + 'reminder' => 116, + 'status' => 92, + 'progress_notes' => 260, + ]; + foreach ($defaults as $column => $width) { + $response->assertSee( + 'data-sys-todo-col="' . $column . '" data-default-width="' . $width . '"', + false, + ); + } + } + public function test_long_progress_and_notes_keep_the_standard_table_row_layout(): void { $this->loginAs();