From 016080d6625cca0e7120e388b3283817d060f2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 23:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=91=98=E8=A6=81=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=B7=A5=E5=85=B7=E5=8C=BA=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 1 + ...umpLinksShouldIncludeToolsShortcutTest.php | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldIncludeToolsShortcutTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 9f7f96d..4ddb527 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -673,6 +673,7 @@ 对账不一致 可同步 续费缺订阅 + 工具区
diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldIncludeToolsShortcutTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldIncludeToolsShortcutTest.php new file mode 100644 index 0000000..be00f72 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldIncludeToolsShortcutTest.php @@ -0,0 +1,36 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_links_should_include_tools_shortcut(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-tools"', $html); + $this->assertStringContainsString('href="#po-tools-grid"', $html); + $this->assertStringContainsString('aria-label="定位到工具区"', $html); + $this->assertStringContainsString('title="前往工具区执行导出或批量动作"', $html); + $this->assertStringContainsString('>工具区<', $html); + } +}