Homepage: add stable intro copy; mark footer utility links data-nosnippet; add render test
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user