TenantAtlas/tests/Feature/LivewireInterceptShimTest.php
2026-02-23 17:57:29 +01:00

17 lines
507 B
PHP

<?php
declare(strict_types=1);
it('injects the Livewire intercept shim into Filament pages', function (): void {
$this->get('/admin/login')
->assertSuccessful()
->assertSee('js/tenantpilot/livewire-intercept-shim.js', escape: false);
});
it('ships a shim that waits for Livewire initialization', function (): void {
$js = file_get_contents(public_path('js/tenantpilot/livewire-intercept-shim.js'));
expect($js)->toBeString();
expect($js)->toContain('livewire:init');
});