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]>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Livewire\Livewire;
|
||||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
@@ -14,17 +13,10 @@ 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');
|
||||
});
|
||||
|
||||
it('increments the click count', function () {
|
||||
Livewire::test('pages::home')
|
||||
->assertSet('clickCount', 0)
|
||||
->call('incrementClickCount')
|
||||
->assertSet('clickCount', 1)
|
||||
->assertSee('Klikattu 1 kertaa');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user