From 8e5cbdab032519560b27ba48576bd2f8e53ff671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 09:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E7=B4=A7=E5=B7=A5=E5=85=B7=E5=8C=BA?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E5=AE=8C=E6=95=B4=E9=9B=86=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...sShouldRenderCompleteNavigationSetTest.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldRenderCompleteNavigationSetTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldRenderCompleteNavigationSetTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldRenderCompleteNavigationSetTest.php new file mode 100644 index 0000000..a74c8dd --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldRenderCompleteNavigationSetTest.php @@ -0,0 +1,39 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tool_grid_jump_links_should_render_complete_navigation_set(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-grid-jump-links"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-export"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-batch-activate"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-batch-bmpa"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-batch-mark-activated"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-clear-sync-errors"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-clear-bmpa-errors"', $html); + $this->assertStringContainsString('data-role="po-tools-grid-jump-links-note"', $html); + } +}