mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
Normalize endpoints on blur and submit, link internal-target errors to settings, and target the S3 submit loading state.
17 lines
609 B
PHP
17 lines
609 B
PHP
<?php
|
|
|
|
use App\Livewire\Storage\Create;
|
|
|
|
it('formats the internal target settings route as a clickable link', function () {
|
|
$settingsUrl = route('settings.advanced').'#endpoint-section';
|
|
$exception = new RuntimeException("Private target. Configure allowed internal targets: {$settingsUrl}");
|
|
$method = new ReflectionMethod(Create::class, 'connectionErrorDescription');
|
|
|
|
$description = $method->invoke(new Create, $exception);
|
|
|
|
expect($description)
|
|
->toContain('href="'.$settingsUrl.'"')
|
|
->toContain('Set them here.')
|
|
->not->toContain('targets: '.$settingsUrl);
|
|
});
|