diff --git a/VERSION b/VERSION index ad60f23..a295bf2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.82 +1.3.83 diff --git a/lang/de/dashboard.php b/lang/de/dashboard.php index fce3254..6c75aec 100644 --- a/lang/de/dashboard.php +++ b/lang/de/dashboard.php @@ -1,6 +1,19 @@ [ + 'pending' => 'Ausstehend', + 'running' => 'Läuft', + 'done' => 'Erledigt', + 'failed' => 'Fehlgeschlagen', + ], + 'traffic' => [ 'title' => 'Datenvolumen diesen Monat', 'label' => 'Datenvolumen', diff --git a/lang/en/dashboard.php b/lang/en/dashboard.php index f36fc69..213e2b2 100644 --- a/lang/en/dashboard.php +++ b/lang/en/dashboard.php @@ -1,6 +1,19 @@ [ + 'pending' => 'Pending', + 'running' => 'Running', + 'done' => 'Done', + 'failed' => 'Failed', + ], + 'traffic' => [ 'title' => 'Data transfer this month', 'label' => 'Data transfer', diff --git a/tests/Feature/Billing/PortalInvoicesTest.php b/tests/Feature/Billing/PortalInvoicesTest.php index 393a865..1ae2cb2 100644 --- a/tests/Feature/Billing/PortalInvoicesTest.php +++ b/tests/Feature/Billing/PortalInvoicesTest.php @@ -62,10 +62,18 @@ it('lists the invoices this customer was actually issued, with their real number ->assertSee('214,80') // Newest first: the one somebody came here to fetch is the last one. ->assertViewHas('invoices', fn ($invoices) => $invoices->first()->is($newer)) - // And nothing invented. These were the mock's, and its prefix belongs to + // And nothing invented. This was the mock's, and its prefix belongs to // no configured series. - ->assertDontSee('CP-2026-0007') - ->assertDontSee('01.08.2026'); + // + // Hier stand einmal auch `assertDontSee('01.08.2026')` — das Datum aus + // der Attrappe. Es hat am 1. August 2026 zugeschlagen: die echten + // Rechnungen dieses Tests tragen das Ausstellungsdatum von heute, also + // war die Zeichenkette plötzlich zu Recht auf der Seite. Eine + // Zusicherung, die ein Datum verbietet, verbietet auch den Tag, an dem + // es echt wird. Was die Attrappe wirklich ausmachte, war ihr Satz, und + // den prüft der Test „says nothing at all about a next charge" nebenan + // über 'Nächste Abbuchung' — stabil, weil er nirgends sonst entsteht. + ->assertDontSee('CP-2026-0007'); }); it('never shows one customer another customer\'s invoice', function () { diff --git a/tests/Feature/ProgressStepperTest.php b/tests/Feature/ProgressStepperTest.php new file mode 100644 index 0000000..1cc7143 --- /dev/null +++ b/tests/Feature/ProgressStepperTest.php @@ -0,0 +1,34 @@ +setLocale($locale); + + $html = Blade::render( + '', + ['steps' => [['label' => 'Ein Schritt', 'state' => $state]]], + ); + + expect($html)->not->toContain('dashboard.step_state') + ->and($html)->toContain(__('dashboard.step_state.'.$state)); + } +})->with(['pending', 'running', 'done', 'failed']);