mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
Gate public TCP proxy until a port is set, show loading while saving access, and open proxy logs in process-dialog. Compact backup execution actions, add Postgres general section anchors, and tint resource Actions icons with warning color.
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
|
|
it('shows a loading indicator while database public access is changing', function () {
|
|
$databaseTypes = [
|
|
'clickhouse',
|
|
'dragonfly',
|
|
'keydb',
|
|
'mariadb',
|
|
'mongodb',
|
|
'mysql',
|
|
'postgresql',
|
|
'redis',
|
|
];
|
|
|
|
foreach ($databaseTypes as $databaseType) {
|
|
$generalSettings = file_get_contents(resource_path("views/livewire/project/database/{$databaseType}/general.blade.php"));
|
|
|
|
expect($generalSettings)
|
|
->toContain('<x-table.loading target="instantSave" text="Updating public access..." />')
|
|
->toContain("'label' => blank(\$publicPort) ? 'Public through TCP proxy (set public port first)' : 'Public through TCP proxy'")
|
|
->toContain("'disabled' => blank(\$publicPort)")
|
|
->toContain('wire:key="public-access-{{ $publicPort ?: \'unset\' }}"')
|
|
->not->toContain('x-data="{ publicPort:')
|
|
->not->toContain('x-effect="options[1].disabled')
|
|
->not->toContain('id="publicPort" x-on:input=')
|
|
->not->toContain('id="publicPort" live');
|
|
}
|
|
});
|