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); + } +}