- Layout: skip link to the main content and a <main> landmark - Home page: stable button label, counter announced via a live status region - Pest browser plugin + Playwright: axe checks (level 2) in light/dark and desktop/mobile, plus a keyboard-only interaction test - Register the Browser test suite in phpunit.xml and Pest.php - CLAUDE.md: accessibility development rules and browser test notes - Boost-refreshed testing-best-practices skill files Co-Authored-By: Claude Opus 5.5 <[email protected]>
20 lines
504 B
PHP
20 lines
504 B
PHP
<?php
|
|
|
|
use Livewire\Livewire;
|
|
|
|
it('renders the home page', function () {
|
|
$this->get(route('home'))
|
|
->assertOk()
|
|
->assertSee('Toiminnanohjaus')
|
|
->assertSee('Siirry pääsisältöön')
|
|
->assertSee('id="main-content"', false);
|
|
});
|
|
|
|
it('increments the click count', function () {
|
|
Livewire::test('pages::home')
|
|
->assertSet('clickCount', 0)
|
|
->call('incrementClickCount')
|
|
->assertSet('clickCount', 1)
|
|
->assertSee('Klikattu 1 kertaa');
|
|
});
|