From de23a245d6d195bae99a188cf09f29123ec02d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 13:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E9=A1=B5=E5=86=85=E5=9B=9E?= =?UTF-8?q?=E7=9C=8B=E5=85=A5=E5=8F=A3=E8=AF=AD=E4=B9=89=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...kspaceBackLinksShouldHaveAriaLabelTest.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpWorkspaceBackLinksShouldHaveAriaLabelTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpWorkspaceBackLinksShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpWorkspaceBackLinksShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..a2ea382 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpWorkspaceBackLinksShouldHaveAriaLabelTest.php @@ -0,0 +1,34 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_jump_workspace_back_links_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-back-to-quick-filters" aria-label="回到快捷筛选"', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-tools" aria-label="回到工具区"', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-list" aria-label="回到订单列表"', $html); + } +}