chore(admin-ui): add filters-card component for platform order filters

This commit is contained in:
萝卜
2026-03-16 01:06:31 +08:00
parent 2f62a5f180
commit 289aac02cf
3 changed files with 57 additions and 4 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrdersIndexShouldUseFiltersCardClassesTest 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_platform_orders_index_should_use_filters_card_classes(): void
{
$this->loginAsPlatformAdmin();
$response = $this->get('/admin/platform-orders');
$response->assertOk();
// 护栏:平台订单筛选区应使用统一的 Filters Card 组件类,便于后续全站风格一致。
$response->assertSee('filters-card', false);
$response->assertSee('filters-summary', false);
$response->assertSee('filters-body', false);
$response->assertSee('filters-grid', false);
}
}