Implement creator studio and upload updates
This commit is contained in:
@@ -156,11 +156,23 @@ it('published story page renders successfully', function () {
|
||||
'published_at' => now()->subMinute(),
|
||||
]);
|
||||
|
||||
$this->get(route('stories.show', ['slug' => $story->slug]))
|
||||
$response = $this->get(route('stories.show', ['slug' => $story->slug]));
|
||||
|
||||
$response
|
||||
->assertOk()
|
||||
->assertSee('Renderable Story', false)
|
||||
->assertSee('language-bash', false)
|
||||
->assertDontSee('{"type":"doc"', false);
|
||||
|
||||
$html = $response->getContent();
|
||||
|
||||
expect($html)
|
||||
->toContain('application/ld+json')
|
||||
->toContain('"Article"')
|
||||
->toContain('property="og:type" content="article"');
|
||||
|
||||
expect(substr_count($html, 'property="og:title"'))->toBe(1);
|
||||
expect(substr_count($html, '<link rel="canonical"'))->toBe(1);
|
||||
});
|
||||
|
||||
it('creator can publish through story editor api create endpoint', function () {
|
||||
|
||||
Reference in New Issue
Block a user