Files
coolify/tests/Feature/NotificationEmailResendLayoutTest.php
T
Andras Bacsai 5f3108b68d feat(ui): unify resource headings with responsive action menus
Add responsive overflow handling and dedicated action menus for application,
service, database, and server headings, while improving upgrade and email
settings flows and returning 404s for missing deployment environments.
2026-08-13 12:17:16 +02:00

26 lines
1.0 KiB
PHP

<?php
test('team notification resend section matches instance email layout', function () {
$instance = file_get_contents(resource_path('views/livewire/settings-email.blade.php'));
$team = file_get_contents(resource_path('views/livewire/notifications/email.blade.php'));
preg_match('/settings-section title="Resend".*?<\/x-application.settings-section>/s', $instance, $instanceResend);
preg_match('/settings-section title="Resend".*?<\/x-application.settings-section>/s', $team, $teamResend);
expect($instanceResend[0] ?? '')
->not->toBeEmpty()
->toContain('grid gap-4 lg:grid-cols-2')
->toContain('id="resendEnabled"')
->toContain('id="resendApiKey"')
->not->toContain('lg:col-span-2')
->not->toContain('description=');
expect($teamResend[0] ?? '')
->not->toBeEmpty()
->toContain('grid gap-4 lg:grid-cols-2')
->toContain('id="resendEnabled"')
->toContain('id="resendApiKey"')
->not->toContain('lg:col-span-2')
->not->toContain('description=');
});