From fd56ef91231bce2aefe444e7045ae3392a029ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 14:23:33 +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=E6=91=98=E8=A6=81=E5=85=A5=E5=8F=A3=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=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 +- ...ndexPageJumpSummaryShouldHaveTitleTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 954c73a..603ac0d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -107,7 +107,7 @@ 页内导航: 快捷筛选 筛选条件 - 摘要概览 + 摘要概览 工具区 订单列表 回顶部 diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.php new file mode 100644 index 0000000..01f6634 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.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_page_jump_summary_should_have_title(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-summary"', $html); + $this->assertStringContainsString('title="回到摘要卡查看当前盘面"', $html); + } +}