From fb8ce549152f91533adadcb94b9b1344f53476cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 18:23:04 +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=E9=A1=B6=E5=B1=82=E5=85=B1=E5=AD=98=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...JumpShouldKeepLinksAndNoteTogetherTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpShouldKeepLinksAndNoteTogetherTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpShouldKeepLinksAndNoteTogetherTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpShouldKeepLinksAndNoteTogetherTest.php new file mode 100644 index 0000000..9731ff1 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpShouldKeepLinksAndNoteTogetherTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_jump_should_keep_links_and_note_together(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/data-role="po-page-jump-links"[\s\S]*?data-role="po-page-jump-note"/u', $html); + } +}