Skip to content

Commit

Permalink
Merge pull request #29139 from storybookjs/valentin/fix-e2e-test-for-…
Browse files Browse the repository at this point in the history
…preact

Preact: Fix E2E test
(cherry picked from commit f6e33b1)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed Sep 16, 2024
1 parent db205bb commit c4b24a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/e2e-tests/addon-docs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,7 @@ test.describe('addon-docs', () => {

// Arrange - Setup expectations
let expectedReactVersionRange = /^18/;
if (
templateName.includes('preact') ||
templateName.includes('react-webpack/17') ||
templateName.includes('react-vite/17')
) {
if (templateName.includes('react-webpack/17') || templateName.includes('react-vite/17')) {
expectedReactVersionRange = /^17/;
} else if (templateName.includes('react16')) {
expectedReactVersionRange = /^16/;
Expand Down

0 comments on commit c4b24a2

Please sign in to comment.