From a5537a17cefd3564d88742aabbb4bd4d003d0b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 12:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E9=A1=B5=E5=86=85=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 +- ...dexPageJumpNoteShouldHaveAriaLabelTest.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldHaveAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index a248f37..98b7406 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -111,7 +111,7 @@ 工具区 订单列表 -
仅用于页内快速跳转,不会改变当前筛选状态。
+
仅用于页内快速跳转,不会改变当前筛选状态。
diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..b9c7d94 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldHaveAriaLabelTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_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-page-jump-note" aria-label="平台订单页内导航说明"', $html); + } +}