feat(admin-dashboard): add rank coverage meta for merchant revenue top5

This commit is contained in:
萝卜
2026-03-16 22:01:06 +08:00
parent 6aa58d5369
commit 3f7ab0ed94
3 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminDashboardMerchantRevenueRank7dMetaShouldIncludeCoverageTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_dashboard_merchant_revenue_rank_7d_meta_should_include_coverage_and_other(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin');
$res->assertOk();
$res->assertSee('data-role="merchant-revenue-rank-7d-meta"', false);
$res->assertSee('覆盖率:', false);
$res->assertSee('其它:', false);
}
}