diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 603ac0d..9626e2e 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -108,7 +108,7 @@ 快捷筛选 筛选条件 摘要概览 - 工具区 + 工具区 订单列表 回顶部 diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpToolsShouldHaveTitleTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpToolsShouldHaveTitleTest.php new file mode 100644 index 0000000..8630599 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpToolsShouldHaveTitleTest.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_tools_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-tools"', $html); + $this->assertStringContainsString('title="回到工具区执行导出或批量动作"', $html); + } +}