From e03779560287937eda3ce91c5f6cbed73f069c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 09:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E5=B7=A5=E5=85=B7=E5=8C=BA?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E5=AF=BC=E8=88=AA=E8=AF=B4=E6=98=8E=E6=8F=90?= =?UTF-8?q?=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 +- ...olGridJumpLinksNoteShouldHaveTitleTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldHaveTitleTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index f6b95a4..b4e42de 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1201,7 +1201,7 @@
筛选条件 导出 - 快速定位只负责跳转到工具组,不会直接执行动作;如需先调整范围,可先回到筛选条件 + 快速定位只负责跳转到工具组,不会直接执行动作;如需先调整范围,可先回到筛选条件 批量同步 批量BMPA 批量仅生效 diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldHaveTitleTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldHaveTitleTest.php new file mode 100644 index 0000000..2405962 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldHaveTitleTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tool_grid_jump_links_note_should_have_title(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-grid-jump-links-note"', $html); + $this->assertStringContainsString('title="快速导航仅负责定位工具组,不会直接执行批量动作"', $html); + } +}