feat: remodelar /sobre conforme mock editorial
All checks were successful
All checks were successful
Alinha a página Sobre à composição aprovada (hero, pilares, Michele, processo, portfólio, CTA), com foto da Michele via CMS e tokens Heritage Editorial. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -80,6 +80,14 @@ class ImmersivePhotoHeroTest extends TestCase
|
||||
->assertDontSee('data-split-hero', false)
|
||||
->assertDontSee('content/heroes/home.jpg', false);
|
||||
}
|
||||
|
||||
if ($route === route('about')) {
|
||||
$response
|
||||
->assertSee('data-motion="page-open"', false)
|
||||
->assertSee('data-about-hero', false)
|
||||
->assertDontSee('data-photo-hero', false)
|
||||
->assertDontSee('min-h-[calc(100dvh-5rem)]', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +107,7 @@ class ImmersivePhotoHeroTest extends TestCase
|
||||
'cover_image_alt' => 'Cerimônia ao ar livre',
|
||||
]);
|
||||
|
||||
foreach ([route('services.index'), route('portfolio.index'), route('portfolio.show', $case->slug), route('about')] as $route) {
|
||||
foreach ([route('services.index'), route('portfolio.index'), route('portfolio.show', $case->slug)] as $route) {
|
||||
$this->get($route)
|
||||
->assertOk()
|
||||
->assertSee('data-photo-hero', false)
|
||||
@@ -107,6 +115,15 @@ class ImmersivePhotoHeroTest extends TestCase
|
||||
->assertSee('fetchpriority="high"', false)
|
||||
->assertSee('sizes="(max-width: 1023px) 100vw, 58vw"', false);
|
||||
}
|
||||
|
||||
$this->get(route('about'))
|
||||
->assertOk()
|
||||
->assertSee('data-about-hero', false)
|
||||
->assertSee('content/heroes/about.jpg', false)
|
||||
->assertSee('loading="eager"', false)
|
||||
->assertSee('fetchpriority="high"', false)
|
||||
->assertDontSee('data-photo-hero', false)
|
||||
->assertDontSee('data-tonal-hero', false);
|
||||
}
|
||||
|
||||
public function test_hero_upload_requires_alt_text_only_when_an_image_is_uploaded(): void
|
||||
|
||||
Reference in New Issue
Block a user