<?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);
    }
}
