Compare commits
1 Commits
feat/whats
...
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');
|
$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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user