Compare commits

...

1 Commits

Author SHA1 Message Date
3ede29dba2 fix: alinhar testes browser ao contrato de CTA home 2026-08-11 23:11:04 -03:00
3 changed files with 4 additions and 5 deletions

View File

@@ -93,8 +93,7 @@ it('reaches the primary CTA by keyboard and activates it', function (): void {
$page->keys('[data-testid="home-primary-cta"]', 'Enter'); $page->keys('[data-testid="home-primary-cta"]', 'Enter');
$hash = $page->script('() => window.location.hash'); $page->assertPathIs('/contato');
expect($hash)->toBe('#sobre');
}); });
it('disables transitions when prefers-reduced-motion is reduce', function (): void { it('disables transitions when prefers-reduced-motion is reduce', function (): void {

View File

@@ -158,7 +158,7 @@ it('opens home motion, reveals once, and allows CTA during open', function (): v
$page->click('[data-testid="home-primary-cta"]'); $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 { 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"]') ->assertVisible('[data-testid="home-primary-cta"]')
->click('[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 { it('keeps targets final when intersection observer is unavailable', function (): void {

View File

@@ -8,7 +8,7 @@ it('renders the public home page', function (): void {
$settings = SiteSetting::instance(); $settings = SiteSetting::instance();
$this->visit('/') $this->visit('/')
->assertSee('Eventos com intenção, cuidado e presença.') ->assertSee($settings->hero_title)
->assertSee($settings->brand_name); ->assertSee($settings->brand_name);
}); });