From e2c99fb7f5128e72f30edc5f83658854c8ef63a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 14:02:57 +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=E8=AF=B4=E6=98=8E=E6=96=87=E5=AD=97=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ouldKeepPurposeTextBeforeBackLinksTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepPurposeTextBeforeBackLinksTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepPurposeTextBeforeBackLinksTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepPurposeTextBeforeBackLinksTest.php new file mode 100644 index 0000000..3a4a674 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepPurposeTextBeforeBackLinksTest.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_note_should_keep_purpose_text_before_back_links(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/po-page-jump-note[\s\S]*?可从这里快速回到关键工作区:[\s\S]*?po-page-jump-back-to-top/u', $html); + } +}