feat(admin-dashboard): add rank coverage meta for merchant revenue top5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user