diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index a8c5cf1..866513a 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -666,6 +666,7 @@ @endif
+ 摘要导航: 已付无回执 对账不一致 可同步 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveVisiblePrefixTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveVisiblePrefixTest.php new file mode 100644 index 0000000..981d9c1 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveVisiblePrefixTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_links_should_have_visible_prefix(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-prefix"', $html); + $this->assertStringContainsString('摘要导航:', $html); + } +}