Implement creator studio and upload updates
This commit is contained in:
@@ -41,6 +41,19 @@ it('home page includes a canonical link tag', function () {
|
||||
->assertSee('rel="canonical"', false);
|
||||
});
|
||||
|
||||
it('home page emits unified SEO tags and structured data', function () {
|
||||
$html = $this->get('/')
|
||||
->assertStatus(200)
|
||||
->getContent();
|
||||
|
||||
expect($html)
|
||||
->toContain('name="description"')
|
||||
->toContain('property="og:title"')
|
||||
->toContain('name="twitter:card"')
|
||||
->toContain('application/ld+json')
|
||||
->toContain('WebSite');
|
||||
});
|
||||
|
||||
it('home page with ?page=2 renders without errors', function () {
|
||||
// getLatestArtworks() returns a plain Collection (no pagination),
|
||||
// so seoNext/seoPrev for home are always null — but the page must still render cleanly.
|
||||
|
||||
Reference in New Issue
Block a user