From 482825afc26d2edfb2d7c88e34ed5cc55e1c775d Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 28 Oct 2026 16:59:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E6=8C=81=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=8C=96=E5=BE=85=E5=8A=9E=E6=93=8D=E4=BD=9C=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/systemization-todos.blade.php | 260 +++++++++++++++--- .../Business/SystemizationTodosTest.php | 11 +- 2 files changed, 226 insertions(+), 45 deletions(-) diff --git a/resources/views/business/pages/systemization-todos.blade.php b/resources/views/business/pages/systemization-todos.blade.php index 014153f8..a70082b9 100644 --- a/resources/views/business/pages/systemization-todos.blade.php +++ b/resources/views/business/pages/systemization-todos.blade.php @@ -1099,6 +1099,166 @@ + + diff --git a/tests/Feature/Business/SystemizationTodosTest.php b/tests/Feature/Business/SystemizationTodosTest.php index 3f090210..8ce431b0 100644 --- a/tests/Feature/Business/SystemizationTodosTest.php +++ b/tests/Feature/Business/SystemizationTodosTest.php @@ -85,7 +85,16 @@ class SystemizationTodosTest extends FeatureTestCase ->assertSee('tr:hover [data-sys-todo-grid-upload]', false) ->assertSee('tr:has(.sys-todo-grid-value.is-selected) [data-sys-todo-grid-upload]', false) ->assertSee("deleteForm.addEventListener('submit', saveScrollSnapshot)", false) - ->assertSee('scrollUrlKey(storedScroll.url) === scrollUrlKey(window.location.href)', false) + ->assertSee('normalizedUrl(snapshot.url) !== normalizedUrl(window.location.href)', false) + ->assertSee('tableY: tableWrap.scrollTop', false) + ->assertSee('tableWrap.scrollTop = Number(snapshot.tableY || 0)', false) + ->assertSee('rowOffset: rowOffset', false) + ->assertSee('positionRow(', false) + ->assertSee("window.CaiWuSystemizationTodoScroll.save({rowId: uploadRowId})", false) + ->assertSee("window.CaiWuSystemizationTodoScroll.save({rowId: ''})", false) + ->assertSee("form.addEventListener('submit', function ()", false) + ->assertSee("groupForm.addEventListener('submit', function ()", false) + ->assertDontSee("scrollIntoView({ behavior: 'smooth'", false) ->assertSee("if (field === 'start_date' || field === 'due_date')", false) ->assertSee('sys-todo-grid-date-editor__pending', false) ->assertSee('window.CaiWuDatePicker.setup(wrapper)', false)