mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-27 17:55:59 -04:00
feat(settings): add development sponsorship reminder preview
This commit is contained in:
@@ -36,3 +36,21 @@ test('non-critical reminders collapse after ten seconds', function () {
|
||||
->toContain('reminders.sponsorship.compact = true')
|
||||
->toContain('reminders.notification.compact = true');
|
||||
});
|
||||
|
||||
test('sponsorship reminder is disabled in development', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('this.popups.sponsorship = !this.isDevelopment && this.shouldShowMonthlyPopup')
|
||||
->toContain('@show-sponsorship-reminder.window="popups.sponsorship = true')
|
||||
->toContain('@show-sponsorship-reminder.window="bannerVisible = true"');
|
||||
});
|
||||
|
||||
test('advanced settings provides a development-only sponsorship reminder preview', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/settings/advanced.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('@if (isDev())')
|
||||
->toContain("@click=\"\$dispatch('show-sponsorship-reminder')\"")
|
||||
->toContain('Show sponsorship reminder');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user