hasDatabaseNotifications())->toBeTrue(); expect($panel->getDatabaseNotificationsPollingInterval())->toBeNull(); } }); it('renders the admin notifications modal without a polling attribute', function (): void { [$user, $tenant] = createUserWithTenant(role: 'owner'); $response = $this->actingAs($user) ->withSession([WorkspaceContext::SESSION_KEY => (int) $tenant->workspace_id]) ->get('/admin'); $response->assertSuccessful(); $html = $response->getContent(); expect($html)->toContain('wire:name="Filament\\Livewire\\DatabaseNotifications"'); preg_match('/<[^>]+wire:name="Filament\\\\Livewire\\\\DatabaseNotifications"[^>]*>/', $html, $matches); expect($matches)->not->toBeEmpty('Expected the admin page to render the database notifications Livewire root element.'); expect($matches[0])->not->toContain('wire:poll'); expect($matches[0])->not->toContain('wire:poll.30s'); });