diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 0f51cf0..6b96859 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -667,7 +667,7 @@
摘要导航: - 说明:仅用于摘要区快速定位,不会改变当前筛选状态。 + 说明:仅用于摘要区快速定位,不会改变当前筛选状态;如需重新调整范围,可先回到筛选条件 已付无回执 对账不一致 可同步 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToFiltersTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToFiltersTest.php new file mode 100644 index 0000000..55e577c --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToFiltersTest.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_filters(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-back-to-filters"', $html); + $this->assertStringContainsString('href="#filters"', $html); + $this->assertStringContainsString('aria-label="回到筛选条件"', $html); + $this->assertStringContainsString('title="回到筛选区调整范围"', $html); + } +}