Homepage: add stable intro copy; mark footer utility links data-nosnippet; add render test

This commit is contained in:
2026-05-08 21:51:28 +02:00
parent 6b83d76cd1
commit 8d108b8a76
3 changed files with 49 additions and 9 deletions

View File

@@ -228,6 +228,40 @@ it('homepage payload includes the announcement prop', function (): void {
expect($html)->toContain('"announcement":{"id":42');
});
it('homepage renders stable intro copy and excludes footer utility text from snippets', function (): void {
$html = view('web.home', [
'seo' => [],
'useUnifiedSeo' => true,
'meta' => [],
'props' => [
'hero' => [
'title' => 'Featured Example',
'author' => 'CreatorName',
'url' => '/art/1/featured-example',
],
'announcement' => null,
'community_favorites' => [],
'hall_of_fame' => [],
'rising' => [],
'trending' => [],
'fresh' => [],
'collections_featured' => [],
'collections_trending' => [],
'collections_editorial' => [],
'collections_community' => [],
'world_spotlight' => null,
'groups' => [],
'tags' => [],
'creators' => [],
'news' => [],
],
])->render();
expect($html)
->toContain('Discover digital art, wallpapers, skins, and photography from a global creator community.')
->toContain('data-nosnippet');
});
it('preview sanitizes html content', function (): void {
$admin = adminUser();