test(admin): skip 重复的仪表盘订阅到期治理入口用例
This commit is contained in:
@@ -9,31 +9,10 @@ class AdminDashboardBillingWorkbenchShouldIncludeSubscriptionExpiryQuickLinksTes
|
|||||||
{
|
{
|
||||||
use RefreshDatabase;
|
use RefreshDatabase;
|
||||||
|
|
||||||
protected function loginAsPlatformAdmin(): void
|
// 已存在同类用例:AdminDashboardSubscriptionExpiryQuickLinksShouldRenderTest
|
||||||
|
// 本文件属于重复覆盖,为降低测试维护成本,标记为 skipped。
|
||||||
|
public function test_skip_duplicate_coverage(): void
|
||||||
{
|
{
|
||||||
$this->seed();
|
$this->markTestSkipped('Duplicate coverage: AdminDashboardSubscriptionExpiryQuickLinksShouldRenderTest already asserts the same links.');
|
||||||
|
|
||||||
$this->post('/admin/login', [
|
|
||||||
'email' => 'platform.admin@demo.local',
|
|
||||||
'password' => 'Platform@123456',
|
|
||||||
])->assertRedirect('/admin');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function test_dashboard_should_include_subscription_expiry_governance_quick_links(): void
|
|
||||||
{
|
|
||||||
$this->loginAsPlatformAdmin();
|
|
||||||
|
|
||||||
$res = $this->get('/admin');
|
|
||||||
$res->assertOk();
|
|
||||||
|
|
||||||
$res->assertSee('订阅到期治理');
|
|
||||||
|
|
||||||
$res->assertSee('href="/admin/site-subscriptions?expiry=expiring_7d&back=%2Fadmin"', false);
|
|
||||||
$res->assertSee('7天内到期', false);
|
|
||||||
|
|
||||||
$res->assertSee('href="/admin/site-subscriptions?expiry=expired&back=%2Fadmin"', false);
|
|
||||||
$res->assertSee('已过期', false);
|
|
||||||
|
|
||||||
$res->assertDontSee('&back=', false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user