Compare commits
1 Commits
1e215ac3d2
...
fix/browse
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ede29dba2 |
@@ -93,8 +93,7 @@ it('reaches the primary CTA by keyboard and activates it', function (): void {
|
||||
|
||||
$page->keys('[data-testid="home-primary-cta"]', 'Enter');
|
||||
|
||||
$hash = $page->script('() => window.location.hash');
|
||||
expect($hash)->toBe('#sobre');
|
||||
$page->assertPathIs('/contato');
|
||||
});
|
||||
|
||||
it('disables transitions when prefers-reduced-motion is reduce', function (): void {
|
||||
|
||||
@@ -158,7 +158,7 @@ it('opens home motion, reveals once, and allows CTA during open', function (): v
|
||||
|
||||
$page->click('[data-testid="home-primary-cta"]');
|
||||
|
||||
expect($page->script('() => window.location.hash'))->toBe('#sobre');
|
||||
$page->assertPathIs('/contato');
|
||||
});
|
||||
|
||||
it('keeps content and navigation usable without javascript', function (): void {
|
||||
@@ -171,7 +171,7 @@ it('keeps content and navigation usable without javascript', function (): void {
|
||||
->assertVisible('[data-testid="home-primary-cta"]')
|
||||
->click('[data-testid="home-primary-cta"]');
|
||||
|
||||
expect($page->script('() => window.location.hash'))->toBe('#sobre');
|
||||
$page->assertPathIs('/contato');
|
||||
});
|
||||
|
||||
it('keeps targets final when intersection observer is unavailable', function (): void {
|
||||
|
||||
@@ -8,7 +8,7 @@ it('renders the public home page', function (): void {
|
||||
$settings = SiteSetting::instance();
|
||||
|
||||
$this->visit('/')
|
||||
->assertSee('Eventos com intenção, cuidado e presença.')
|
||||
->assertSee($settings->hero_title)
|
||||
->assertSee($settings->brand_name);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user