<?php

use App\Livewire\BulkOperationProgress;
use Filament\Facades\Filament;
use Livewire\Livewire;

it('renders the progress widget poller script', function () {
    [$user, $tenant] = createUserWithTenant(role: 'owner');
    $this->actingAs($user);

    Filament::setTenant($tenant, true);

    Livewire::test(BulkOperationProgress::class)
        ->assertSee('opsUxProgressWidgetPoller()')
        ->assertSee('window.opsUxProgressWidgetPoller');
})->group('ops-ux');
