diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index c3c845c..70d3a78 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -668,7 +668,7 @@
摘要导航: 筛选条件 - 说明:仅用于摘要区快速定位,不会改变当前筛选状态;如需重新查看页头概述,可回到顶部;如需重新查看摘要整体,可先回到摘要区;如需重新调整范围,可先回到筛选条件;如需继续执行动作,可回到工具区 + 说明:仅用于摘要区快速定位,不会改变当前筛选状态;如需重新查看页头概述,可回到顶部;如需重新查看摘要整体,可先回到摘要区;如需重新调整范围,可先回到筛选条件;如需继续执行动作,可回到工具区;如需核对明细,可回到订单列表 摘要导航只负责定位到关键摘要卡,不会触发治理动作。 已付无回执 对账不一致 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToListTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToListTest.php new file mode 100644 index 0000000..93f7def --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToListTest.php @@ -0,0 +1,35 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_note_should_link_back_to_list(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-back-to-list"', $html); + $this->assertStringContainsString('href="#po-list-card"', $html); + $this->assertStringContainsString('aria-label="回到订单列表"', $html); + $this->assertStringContainsString('title="回到订单列表查看明细"', $html); + } +}