Entferne die Fehlermeldung beim Korrigieren und belege die Abnahme der Größen-Seite
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca0f68e8f6
commit
9f070fbab2
18 files changed
+97
No files matched your search
@@ -197,6 +197,20 @@ public function test_invalid_values_show_messages_and_are_not_saved(): void
|
||||
$component->assertSee('mindestens 16 px', false)->assertSee('höchstens 20 px', false);
|
||||
}
|
||||
|
||||
public function test_correcting_a_value_removes_its_error_message(): void
|
||||
{
|
||||
$component = Livewire::actingAs($this->admin(), 'staff')->test(DesignGroessen::class)
|
||||
->set('werte.body', '99')
|
||||
->set('werte.h1', '31')
|
||||
->call('speichern');
|
||||
|
||||
$this->assertArrayHasKey('body', $component->get('fehler'));
|
||||
|
||||
$component->set('werte.body', '18');
|
||||
|
||||
$this->assertArrayNotHasKey('body', $component->get('fehler'));
|
||||
}
|
||||
|
||||
public function test_restoring_the_defaults_needs_a_confirmation_and_clears_the_stored_values(): void
|
||||
{
|
||||
DesignSettings::save([...DesignScale::defaults(), 'body' => 18, 'section' => 64]);
|
||||
|
||||
Reference in new issue
Block a user