profil: Speichern-Buttons für Persönliche Daten und Konto & Sicherheit

Die beiden oberen Panels auf /admin/me/profile hatten als einzige
keine eigene Speichern-Zeile — Sprach- und Kontaktdaten-Änderungen
ließen sich nur über die Buttons weiter unten sichern. Footer wie in
den übrigen Panels ergänzt, per flex/mt-auto bündig am Panel-Ende.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-15 13:12:05 +00:00
parent 244b7ba3cd
commit 8a695fd555
2 changed files with 26 additions and 2 deletions

View file

@ -84,6 +84,20 @@ test('an incomplete billing address reports each missing field exactly once', fu
->assertHasErrors(['billingLastName', 'billingAddress1', 'billingPostalCode', 'billingCity']);
});
test('every profile panel offers a save button', function () {
/** @var TestCase $this */
$customer = User::factory()->create(['is_active' => true]);
$this->actingAs($customer);
// 6 Panels (Persönliche Daten, Konto & Sicherheit, Rechnungsadresse,
// Agentur-Angaben, E-Mail-Benachrichtigungen, Einstellungen) — jedes mit
// eigenem Submit-Button für dasselbe Formular.
$html = LivewireVolt::test('customer.profile')->html();
expect(substr_count($html, 'type="submit"'))->toBe(6);
});
test('a malformed vat id blocks saving with a field error', function () {
/** @var TestCase $this */
$customer = User::factory()->create(['is_active' => true]);