From 0f53c6851d38f8c822f0dbc3d11b5d347c531fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Fri, 20 Mar 2026 00:07:19 +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=E5=AE=8C=E6=95=B4=E7=BB=84=E4=BB=B6=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dRenderCompleteNavigationComponentTest.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldRenderCompleteNavigationComponentTest.php diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldRenderCompleteNavigationComponentTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldRenderCompleteNavigationComponentTest.php new file mode 100644 index 0000000..25fe53e --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldRenderCompleteNavigationComponentTest.php @@ -0,0 +1,38 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_links_should_render_complete_navigation_component(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-links"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-prefix"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-note"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-paid-no-receipt"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-reconcile-mismatch"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-syncable"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-renewal-missing-sub"', $html); + } +}