22-05-2026 Optimierung der User und Admin Panels
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
Kevin Adametz 2026-05-22 11:18:59 +02:00
parent d2ba22c0cf
commit e8c47b7553
73 changed files with 10282 additions and 1546 deletions

View file

@ -58,6 +58,24 @@ test('customer can access me dashboard but not admin dashboard', function () {
$this->get(route('dashboard'))->assertForbidden();
});
test('customer bookings page shows credit packages and add ons from pricing concept', function () {
/** @var TestCase $this */
$customer = User::factory()->create(['is_active' => true]);
$customer->assignRole('customer');
$this->actingAs($customer)
->get(route('me.bookings.index'))
->assertSuccessful()
->assertSee('Credit-Pakete')
->assertSee('Standard')
->assertSee('50')
->assertSee('45 €')
->assertSee('Pressetext-Optimierung')
->assertSee('Top-Slot Startseite')
->assertSee('Score 80+')
->assertSee('Noch keine aktiven Buchungen');
});
test('admin can access both panel dashboards', function () {
/** @var TestCase $this */
$admin = User::factory()->create(['is_active' => true]);