From 4ccf9c28af6d258be43f257d644c4bdbbba21a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 18:15:17 +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=E5=AE=8C=E6=95=B4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...derCompleteBackNavigationComponentTest.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldRenderCompleteBackNavigationComponentTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldRenderCompleteBackNavigationComponentTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldRenderCompleteBackNavigationComponentTest.php new file mode 100644 index 0000000..750cdc3 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldRenderCompleteBackNavigationComponentTest.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_note_should_render_complete_back_navigation_component(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-note"', $html); + $this->assertStringContainsString('仅用于页内快速跳转,不会改变当前筛选状态;', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-top"', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-quick-filters"', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-summary"', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-tools"', $html); + $this->assertStringContainsString('data-role="po-page-jump-back-to-list"', $html); + } +}