Files
petriandClaude Sonnet 5.5 487a7d34ba Replace the demo home page with a dashboard
Everyone sees their open tasks on an agenda, their open jobs, this
week's hours and quick links. Admin and management also get a lazily
loaded management panel: things to do, the month so far against the
previous month, jobs and late work, and everyone's workload.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 09:20:02 +02:00

23 lines
673 B
PHP

<?php
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
uses(RefreshDatabase::class);
beforeEach(function () {
$this->actingAs(User::factory()->create(['name' => 'Eero Esimerkki']));
});
it('renders the home page with the main menu', function () {
$this->get(route('home'))
->assertOk()
->assertSee('Toiminnanohjaus')
->assertSee('Hei, Eero Esimerkki')
->assertSee('Siirry pääsisältöön')
->assertSee('id="main-content"', false)
->assertSee('aria-label="Päävalikko"', false)
->assertSee('aria-label="Profiili: Eero Esimerkki"', false)
->assertSee('Kirjaudu ulos');
});