mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
Possibly .not.toBeEmpty()
isn't reliable
This commit is contained in:
parent
2dc6698a20
commit
c5e4df91cd
@ -9,9 +9,6 @@ test('Basic story test', async ({ page }) => {
|
||||
const preview = page.frameLocator('#storybook-preview-iframe');
|
||||
const root = preview.locator('#root:visible, #docs-root:visible');
|
||||
|
||||
// General check for any selected entry
|
||||
await expect(root).not.toBeEmpty();
|
||||
|
||||
// Specific check for introduction story
|
||||
await expect(root).toContainText('Welcome');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user