diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 9435ad0..772ed93 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/AdminPlatformOrderIndexPageJumpTopShouldHaveTitleTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpTopShouldHaveTitleTest.php new file mode 100644 index 0000000..8507178 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpTopShouldHaveTitleTest.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_have_title(): 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); + } +}