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); + } +}