@if ($consumedPurchases->isNotEmpty())
diff --git a/tests/Feature/Billing/BookingsPageTest.php b/tests/Feature/Billing/BookingsPageTest.php
index 6b34aa7..c4e5274 100644
--- a/tests/Feature/Billing/BookingsPageTest.php
+++ b/tests/Feature/Billing/BookingsPageTest.php
@@ -41,7 +41,7 @@ test('the bookings page renders the active plans with checkout links', function
->assertSee('Business')
->assertSee('49 €')
->assertSee('490 €')
- ->assertSee('10 Pressemitteilungen pro Monat')
+ ->assertSee('Pressemitteilungen pro Monat')
->assertSee('max. 2 Veröffentlichungen pro Tag')
->assertSee('2 Monate gratis')
->assertSee(route('me.checkout.subscription', ['planSlug' => 'business', 'interval' => 'monthly']), false)
@@ -61,13 +61,14 @@ test('the single pm block links to its checkout', function () {
->assertSee(route('me.checkout.single-pm'), false);
});
-test('without any booking the page shows the empty state', function () {
+test('without any booking the current tariff card is hidden', function () {
/** @var TestCase $this */
$this->actingAs(bookingsTestCustomer());
LivewireVolt::test('customer.bookings')
- ->assertSee('Noch kein aktiver Tarif')
- ->assertSee('Noch keine aktiven Buchungen');
+ ->assertDontSee('Aktueller Tarif')
+ ->assertSee('Den passenden Tarif wählen')
+ ->assertSee('Noch kein Buchungsverlauf');
});
test('a subscriber sees the current plan and the manage button', function () {
@@ -85,7 +86,7 @@ test('a subscriber sees the current plan and the manage button', function () {
LivewireVolt::test('customer.bookings')
->assertSee('Ihr aktueller Tarif')
->assertSee('Abo verwalten')
- ->assertSee('Abo: Pro')
+ ->assertSee('Pressemitteilungen pro Monat')
->assertSee(route('me.checkout.billing-portal'), false);
});
@@ -104,11 +105,10 @@ test('a grandfathered legacy user sees the bestandstarif with unlimited quota',
LivewireVolt::test('customer.bookings')
->assertSee('Bestandstarif')
->assertSee('Presseverteiler Premium')
- ->assertSee('Unbegrenzte Pressemitteilungen (Bestandsschutz).')
- ->assertSee('Unbegrenzt');
+ ->assertSee('Unbegrenzte Pressemitteilungen (Bestandsschutz).');
});
-test('open and consumed single purchases appear in bookings and history', function () {
+test('open and consumed single purchases appear in the card and history', function () {
/** @var TestCase $this */
$user = bookingsTestCustomer();
SinglePurchase::factory()->paid()->create(['user_id' => $user->id]);
@@ -117,7 +117,7 @@ test('open and consumed single purchases appear in bookings and history', functi
$this->actingAs($user);
LivewireVolt::test('customer.bookings')
- ->assertSee('einlösbar')
+ ->assertSee('Einzel-Pressemitteilung verfügbar')
->assertSee('eingelöst am');
});
diff --git a/tests/Feature/PanelConsolidationTest.php b/tests/Feature/PanelConsolidationTest.php
index 5d39ef2..f1f906f 100644
--- a/tests/Feature/PanelConsolidationTest.php
+++ b/tests/Feature/PanelConsolidationTest.php
@@ -80,7 +80,7 @@ test('customer bookings page shows the tariff grid and single pm block', functio
->assertSee('29 €')
->assertSee('2 Monate gratis')
->assertSee('Einzel-Pressemitteilung — ohne Abo')
- ->assertSee('Noch keine aktiven Buchungen');
+ ->assertSee('Noch kein Buchungsverlauf');
});
test('admin can access both panel dashboards', function () {