mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 16:13:49 +00:00
fix(realtime): force-WS option and polish connection popup UI
Add PUSHER_FORCE_WS so Echo/Pusher can prefer plain WebSocket transports, redesign the real-time connection warning popup, and give copy-button inputs durable right padding in settings forms.
This commit is contained in:
1 parent
07933640f2
commit
dbc6f5e08c
12 files changed
+188
-52
No files matched your search
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Layout popups (realtime warning, sponsorship, notifications) use the redesigned UI shell.
|
||||
*/
|
||||
test('realtime connection warning uses the redesigned popup shell', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('Cannot connect to real-time service')
|
||||
->toContain('Acknowledge & disable')
|
||||
->toContain('customActions')
|
||||
->toContain('rounded-2xl border border-red-200')
|
||||
->toContain('name="alert-triangle"')
|
||||
->not->toContain('WARNING: </span> Cannot connect to real-time service')
|
||||
->not->toContain('Acknowledge & Disable This Popup');
|
||||
});
|
||||
|
||||
test('notification reminder uses the redesigned popup shell', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('No notifications enabled')
|
||||
->toContain('Accept and close')
|
||||
->toContain('Open notifications')
|
||||
->not->toContain('Accept and Close');
|
||||
});
|
||||
Reference in new issue
Block a user