From 3b67065d761d96c249c653a39bc8e091085a2ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 17:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E7=B4=A7=E9=A1=B5=E5=86=85=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=9B=9E=E5=88=97=E8=A1=A8=E6=8F=90=E7=A4=BA=E6=96=87?= =?UTF-8?q?=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 +- ...mpBackToListShouldHaveUpdatedTitleTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpBackToListShouldHaveUpdatedTitleTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 64881dd..b9afbc3 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -112,7 +112,7 @@ 订单列表 回顶部 -
仅用于页内快速跳转,不会改变当前筛选状态;可从这里快速回到关键工作区:如需重新查看页头概述,可回到顶部;如需继续调整集合,可回到快捷筛选;如需重新查看盘面,可回到摘要概览;如需继续执行动作,可回到工具区;如需核对明细,可回到订单列表
+
仅用于页内快速跳转,不会改变当前筛选状态;可从这里快速回到关键工作区:如需重新查看页头概述,可回到顶部;如需继续调整集合,可回到快捷筛选;如需重新查看盘面,可回到摘要概览;如需继续执行动作,可回到工具区;如需核对明细,可回到订单列表
diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpBackToListShouldHaveUpdatedTitleTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpBackToListShouldHaveUpdatedTitleTest.php new file mode 100644 index 0000000..f7c43bf --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpBackToListShouldHaveUpdatedTitleTest.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_back_to_list_should_have_updated_title(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-back-to-list"', $html); + $this->assertStringContainsString('title="回到订单列表查看明细"', $html); + } +}