34 lines
878 B
PHP
34 lines
878 B
PHP
<?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);
|
|
}
|
|
}
|