From 13d836fe57933b60930cb1c7962442e4fa991820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 12:45:20 +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=8F=8C=E5=9B=9E=E8=B7=B3=E7=BB=93=E6=9E=84=E6=8A=A4?= =?UTF-8?q?=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...NoteShouldKeepTopAndToolsBackLinksTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepTopAndToolsBackLinksTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepTopAndToolsBackLinksTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepTopAndToolsBackLinksTest.php new file mode 100644 index 0000000..3ba4ec8 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldKeepTopAndToolsBackLinksTest.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_top_and_tools_back_links(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/data-role="po-page-jump-note"[\s\S]*?po-page-jump-back-to-top[\s\S]*?回到顶部[\s\S]*?po-page-jump-back-to-tools[\s\S]*?回到工具区/u', $html); + } +}