From 0dace50ed34dad619fc3a895a4c57e1602ba52c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 14:12:55 +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=E5=9B=9E=E9=A1=B6=E9=83=A8=E9=A1=BA=E5=BA=8F=E6=8A=A4?= =?UTF-8?q?=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ageJumpLinksShouldEndWithBackToTopTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldEndWithBackToTopTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldEndWithBackToTopTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldEndWithBackToTopTest.php new file mode 100644 index 0000000..3d93ccb --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldEndWithBackToTopTest.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_links_should_end_with_back_to_top(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/po-page-jump-list[\s\S]*?订单列表[\s\S]*?po-page-jump-top[\s\S]*?回顶部/u', $html); + } +}