diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 954c73a..603ac0d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -107,7 +107,7 @@ 页内导航: 快捷筛选 筛选条件 - 摘要概览 + 摘要概览 工具区 订单列表 回顶部 diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.php new file mode 100644 index 0000000..01f6634 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpSummaryShouldHaveTitleTest.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_summary_should_have_title(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-summary"', $html); + $this->assertStringContainsString('title="回到摘要卡查看当前盘面"', $html); + } +}