From 85bba5596c103153cb40a3c5e1dfa9a145a5857c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 18:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E9=A1=B5=E5=86=85=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E4=B8=BB=E8=B7=B3=E8=BD=AC=E9=9B=86=E5=90=88=E6=8A=A4?= =?UTF-8?q?=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...mpLinksShouldKeepAllPrimaryTargetsTest.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldKeepAllPrimaryTargetsTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldKeepAllPrimaryTargetsTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldKeepAllPrimaryTargetsTest.php new file mode 100644 index 0000000..3ef671a --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldKeepAllPrimaryTargetsTest.php @@ -0,0 +1,38 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_jump_links_should_keep_all_primary_targets(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-prefix"', $html); + $this->assertStringContainsString('data-role="po-page-jump-quick-filters"', $html); + $this->assertStringContainsString('data-role="po-page-jump-filters"', $html); + $this->assertStringContainsString('data-role="po-page-jump-summary"', $html); + $this->assertStringContainsString('data-role="po-page-jump-tools"', $html); + $this->assertStringContainsString('data-role="po-page-jump-list"', $html); + $this->assertStringContainsString('data-role="po-page-jump-top"', $html); + } +}