From 68c9df40a41ddcd704683ca4fedb8ed2d96aa8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sun, 15 Mar 2026 18:40:55 +0800 Subject: [PATCH] =?UTF-8?q?test(admin):=20=E4=BB=AA=E8=A1=A8=E7=9B=98=20An?= =?UTF-8?q?alysis=20=E7=AC=AC=E4=B8=89=E8=A1=8C=E9=AA=A8=E6=9E=B6=E6=8A=A4?= =?UTF-8?q?=E6=A0=8F=EF=BC=88=E6=9C=80=E8=BF=91=E8=AE=A2=E5=8D=95/?= =?UTF-8?q?=E5=8D=A0=E6=AF=94=E5=8D=A0=E4=BD=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oardShouldHaveAnalysisRow2SkeletonTest.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/Feature/AdminDashboardShouldHaveAnalysisRow2SkeletonTest.php diff --git a/tests/Feature/AdminDashboardShouldHaveAnalysisRow2SkeletonTest.php b/tests/Feature/AdminDashboardShouldHaveAnalysisRow2SkeletonTest.php new file mode 100644 index 0000000..da0ee96 --- /dev/null +++ b/tests/Feature/AdminDashboardShouldHaveAnalysisRow2SkeletonTest.php @@ -0,0 +1,35 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_dashboard_should_have_analysis_row2_skeleton(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin'); + $res->assertOk(); + + $html = (string) $res->getContent(); + + $this->assertStringContainsString('data-role="analysis-skeleton-row2"', $html); + $this->assertStringContainsString('最近平台订单', $html); + $this->assertStringContainsString('占比', $html); + } +}