test: Add feature tests

This commit is contained in:
Attila Kerekes
2022-12-04 10:14:07 +01:00
committed by Attila Kerekes
parent 52620bc331
commit 45cc84c99c
17 changed files with 360 additions and 31 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class SettingsTest extends TestCase
{
use RefreshDatabase;
public function test_displays_the_settings_page()
{
$this->seed();
$response = $this->get('/settings');
$response->assertStatus(200);
$response->assertSeeInOrder([
'Version',
'Language',
'Support',
'Donate',
'Background Image',
'Homepage Search',
'Default Search Provider',
'Link opens in',
'Custom CSS',
'Custom JavaScript',
]);
}
}