chore(admin-ui): apply list-card component to platform orders index

This commit is contained in:
萝卜
2026-03-16 01:26:16 +08:00
parent 74a8d41938
commit cd9bf2dbc4
2 changed files with 44 additions and 5 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrdersIndexShouldUseListCardStructureTest 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_list_card_structure(): void
{
$this->loginAsPlatformAdmin();
$response = $this->get('/admin/platform-orders');
$response->assertOk();
// 护栏:平台订单列表区域应使用统一 List Card 结构,便于全站列表页风格统一。
$response->assertSee('list-card', false);
$response->assertSee('list-card-header', false);
$response->assertSee('list-card-body', false);
$response->assertSee('list-card-table', false);
}
}