Replaces maryUI and daisyUI with nonameweb/livewire-material: the Vibrant indigo scheme, a system/light/dark theme under sealshare-theme, one top app bar with the account menu, the upload drop zone and link-ready moments, M3 fields, dialogs instead of wire:confirm, snackbars instead of flashed messages, a sortable admin table, and the starter-kit cleanup. Docker builds assets after Composer; CI drops the Flux step. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
19 lines
549 B
PHP
19 lines
549 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
|
|
test('the starter placeholder dashboard is gone', function () {
|
|
$this->actingAs(User::factory()->admin()->create())
|
|
->get('/dashboard')
|
|
->assertNotFound();
|
|
});
|
|
|
|
test('a signed-in admin lands on the admin dashboard', function () {
|
|
$admin = User::factory()->admin()->create();
|
|
|
|
$this->post(route('login.store'), ['email' => $admin->email, 'password' => 'password'])
|
|
->assertRedirect(route('admin.dashboard', absolute: false));
|
|
|
|
$this->get(route('admin.dashboard'))->assertOk();
|
|
});
|