Skip to content

Commit

Permalink
skip onboarding addon tests for built storybooks
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Dec 18, 2024
1 parent 2b2b54d commit 441ad86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/e2e-tests/addon-onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { SbPage } from './util';

const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001';
const templateName = process.env.STORYBOOK_TEMPLATE_NAME || '';
const type = process.env.STORYBOOK_TYPE || 'dev';

const supportsOnboarding =
templateName.includes('react') ||
Expand All @@ -13,6 +14,7 @@ const supportsOnboarding =
templateName.includes('next');

test.describe('addon-onboarding', () => {
test.skip(type === 'build', `Skipping addon tests for production Storybooks`);
test.skip(
!supportsOnboarding,
`Skipping ${templateName}, which does not have addon-onboarding set up.`
Expand Down

0 comments on commit 441ad86

Please sign in to comment.