Files
coolify/tests/Feature/SettingsScheduledJobsRefreshPlacementTest.php
T
Andras Bacsai 2291c3fa1c feat(ui): unify team, security, and notification settings layouts
Extract shared settings-layout components and a dedicated team
danger-zone page. Enable modal editing for security resources,
polish OAuth/API-token controls, and align notification and
service configuration UI with the new navigation patterns.
2026-08-05 16:24:31 +02:00

20 lines
790 B
PHP

<?php
test('scheduled jobs refresh control lives on the activity section not the navbar', function () {
$view = file_get_contents(resource_path('views/livewire/settings/scheduled-jobs.blade.php'));
expect($view)
->toContain('<x-settings.layout>')
->toContain('settings-section title="Scheduler activity"')
->toContain('wire:click="refresh"')
->not->toContain('<x-settings.navbar');
// Refresh should appear after the activity section opens, not before.
$activityPos = strpos($view, 'settings-section title="Scheduler activity"');
$refreshPos = strpos($view, 'wire:click="refresh"');
expect($activityPos)->not->toBeFalse()
->and($refreshPos)->not->toBeFalse()
->and($refreshPos)->toBeGreaterThan($activityPos);
});