diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index a404a95..6b5c97b 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -110,7 +110,7 @@ 摘要概览 工具区 订单列表 - 回顶部 + 回顶部
仅用于页内快速跳转,不会改变当前筛选状态;可从这里快速回到关键工作区:如需重新查看页头概述,可回到顶部;如需继续调整集合,可回到快捷筛选;如需重新查看盘面,可回到摘要概览;如需继续执行动作,可回到工具区;如需核对明细,可回到订单列表
diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpTopShouldMatchBackToTopTitleStyleTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpTopShouldMatchBackToTopTitleStyleTest.php new file mode 100644 index 0000000..64c8f07 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpTopShouldMatchBackToTopTitleStyleTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_jump_top_should_match_back_to_top_title_style(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-top"', $html); + $this->assertStringContainsString('title="回到顶部查看页头概述"', $html); + } +}