diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 866513a..76f3ed3 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -667,10 +667,10 @@
摘要导航: - 已付无回执 - 对账不一致 - 可同步 - 续费缺订阅 + 已付无回执 + 对账不一致 + 可同步 + 续费缺订阅
diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveTitleForEachActionTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveTitleForEachActionTest.php new file mode 100644 index 0000000..325c9d9 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveTitleForEachActionTest.php @@ -0,0 +1,39 @@ +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_title_for_each_action(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-paid-no-receipt"', $html); + $this->assertStringContainsString('title="回到已付无回执摘要卡"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-reconcile-mismatch"', $html); + $this->assertStringContainsString('title="回到对账不一致摘要卡"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-syncable"', $html); + $this->assertStringContainsString('title="回到可同步摘要卡"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-renewal-missing-sub"', $html); + $this->assertStringContainsString('title="回到续费缺订阅摘要卡"', $html); + } +}