Skip to content

Commit 9ae6e11

Browse files
committed
fix: remove storybook:generate-preview command
1 parent 4613dda commit 9ae6e11

File tree

3 files changed

+26
-63
lines changed

3 files changed

+26
-63
lines changed

src/Command/GeneratePreviewCommand.php

-38
This file was deleted.

tests/Functional/Command/GeneratePreviewCommandTest.php

-25
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Storybook\Tests\Functional\Controller;
4+
5+
use Storybook\Tests\StoryTestTrait;
6+
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
7+
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
8+
use Symfony\Component\DomCrawler\Crawler;
9+
10+
class StorybookPreviewControllerTest extends WebTestCase
11+
{
12+
use StoryTestTrait;
13+
14+
public function testPreview()
15+
{
16+
$client = static::createClient();
17+
$client->request('GET', '_storybook/preview');
18+
19+
$this->assertResponseIsSuccessful();
20+
21+
// Check that the preview contains the basic HTML structure
22+
$this->assertSelectorExists('html');
23+
$this->assertSelectorExists('head');
24+
$this->assertSelectorExists('body');
25+
}
26+
}

0 commit comments

Comments
 (0)