Fix e2e test properly

This commit is contained in:
Tom Coleman 2023-02-24 16:52:30 +11:00
parent 6ecced19db
commit 7aecf57f9e

View File

@ -19,8 +19,8 @@ test.describe('addon-docs', () => {
await sbPage.navigateToStory('addons/docs/docspage/error', 'docs');
const root = sbPage.previewRoot();
const autoplayPre = root.locator('#story--addons-docs-docspage-error--error-story');
await expect(autoplayPre).toContainText('Story did something wrong');
const primaryStory = root.locator('#story--addons-docs-docspage-error--error-story--primary');
await expect(primaryStory).toContainText('Story did something wrong');
});
test('should provide source snippet', async ({ page }) => {