From fb7012a1e5d39998a6c6cfb696a6ec46fcb63c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 20:19:15 +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=E8=AF=AD=E4=B9=89=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 2 +- ...SummaryJumpNoteShouldHaveAriaLabelTest.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 0913ce2..e2a1aff 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/AdminPlatformOrderSummaryJumpNoteShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..1f4aac5 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldHaveAriaLabelTest.php @@ -0,0 +1,32 @@ +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_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-note" aria-label="平台订单摘要导航说明"', $html); + } +}