From ce070348867bf10a562daa86ca7bb2d0ef12082b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 20:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E6=91=98=E8=A6=81=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E8=AF=B4=E6=98=8E=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 2 +- ...rderSummaryJumpNoteShouldHaveTitleTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveTitleTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 6778fc2..0f51cf0 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -667,7 +667,7 @@
摘要导航: - 说明:仅用于摘要区快速定位,不会改变当前筛选状态。 + 说明:仅用于摘要区快速定位,不会改变当前筛选状态。 已付无回执 对账不一致 可同步 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveTitleTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveTitleTest.php new file mode 100644 index 0000000..a5bfa67 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveTitleTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_note_should_have_title(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-note"', $html); + $this->assertStringContainsString('title="摘要导航仅用于快速定位摘要卡,不会改变筛选状态"', $html); + } +}