<?php

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class AdminSiteSubscriptionsIndexShouldUseFiltersCardClassesTest 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_site_subscriptions_index_should_use_filters_card_classes(): void
    {
        $this->loginAsPlatformAdmin();

        $response = $this->get('/admin/site-subscriptions');
        $response->assertOk();

        // 护栏：订阅管理筛选区应复用统一 Filters Card 组件类（与平台订单列表一致）。
        $response->assertSee('filters-card', false);
        $response->assertSee('filters-summary', false);
        $response->assertSee('filters-body', false);
        $response->assertSee('filters-grid', false);
    }
}
