feat(KAN-36): rebuild profile and appearance settings
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Symfony\Component\Process\Process;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ProfileUpdateTest extends TestCase
|
||||
@@ -219,6 +220,16 @@ class ProfileUpdateTest extends TestCase
|
||||
$response->assertSessionHasErrors('avatar');
|
||||
}
|
||||
|
||||
public function test_profile_and_appearance_settings_render_the_shared_localized_interface(): void
|
||||
{
|
||||
$process = new Process(['node', 'tests/Fixtures/settings.mjs'], base_path());
|
||||
$process->setTimeout(60);
|
||||
$process->run();
|
||||
|
||||
$this->assertTrue($process->isSuccessful(), $process->getOutput().$process->getErrorOutput());
|
||||
$this->assertStringContainsString('Settings rendering and localization checks passed.', $process->getOutput());
|
||||
}
|
||||
|
||||
public function test_user_can_delete_their_account()
|
||||
{
|
||||
Storage::fake('public');
|
||||
|
||||
Reference in New Issue
Block a user