From ced346c4a133cde18acda71dfe4e927c172b13ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 19:39:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E6=91=98=E8=A6=81=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=8C=89=E9=92=AE=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 8 ++-- ...pLinksShouldHaveTitleForEachActionTest.php | 39 +++++++++++++++++++ 2 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveTitleForEachActionTest.php 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); + } +}