chore(admin-ui): reuse filters-card on plans index
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlansIndexShouldUseFiltersCardClassesTest 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_admin_plans_index_should_use_filters_card_classes(): void
|
||||
{
|
||||
$this->loginAsPlatformAdmin();
|
||||
|
||||
$response = $this->get('/admin/plans');
|
||||
$response->assertOk();
|
||||
|
||||
// 护栏:套餐管理筛选区应复用统一 Filters Card 组件类(与平台订单/订阅列表一致)。
|
||||
$response->assertSee('filters-card', false);
|
||||
$response->assertSee('filters-summary', false);
|
||||
$response->assertSee('filters-body', false);
|
||||
$response->assertSee('filters-grid', false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user