emojis
All checks were successful
/ ls (pull_request) Successful in 1m26s
/ ls (release) Successful in 51s
/ ls (push) Successful in 1m23s

This commit is contained in:
lubiana 2025-06-16 20:10:48 +02:00
parent f0c738362a
commit 476f91f7cf
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
27 changed files with 401 additions and 174 deletions

View file

@ -27,7 +27,7 @@ test('System Config index page displays all configurations', function (): void {
$this->assertResponseIsSuccessful();
// Check page title
$this->assertSelectorTextContains('h1', 'System Settings');
$this->assertSelectorTextContains('h1', 'SYSTEM SETTINGS');
// Check that all system configs are displayed
foreach (SystemSettingKey::cases() as $key) {
@ -55,7 +55,7 @@ test('System Config edit page displays form correctly', function (): void {
$this->assertResponseIsSuccessful();
// Check page title
$this->assertSelectorTextContains('h1', 'Edit System Setting: ' . $config->getKey()->name);
$this->assertSelectorTextContains('h1', 'EDIT SYSTEM SETTING');
// Check that the form exists with the current value
$this->assertSelectorExists('form[name="system_config_form"]');
@ -90,7 +90,7 @@ test('System Config edit form submission updates configuration', function (): vo
$crawler = $client->request('GET', "/system-config/{$config->getId()}/edit");
// Submit the form with updated value
$form = $crawler->selectButton('Update')->form();
$form = $crawler->filter('form[name="system_config_form"]')->form();
$form['system_config_form[value]'] = $newValue;
$client->submit($form);
@ -166,7 +166,7 @@ test('System Config edit form rejects empty values', function (): void {
$crawler = $client->request('GET', "/system-config/{$config->getId()}/edit");
// Submit the form with an empty value
$form = $crawler->selectButton('Update')->form();
$form = $crawler->filter('form[name="system_config_form"]')->form();
$form['system_config_form[value]'] = '';
$client->submit($form);