File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 expect ,
88 test ,
99} from '@playwright/test'
10+ import React from 'react'
1011import { x } from 'tinyexec'
1112import { normalizePath , type Rollup } from 'vite'
1213import { type Fixture , useCreateEditor , useFixture } from './fixture'
@@ -1277,6 +1278,12 @@ function defineTest(f: Fixture) {
12771278 await expect ( page . getByTestId ( 'action-error-boundary' ) ) . toContainText (
12781279 '(Error: boom!)' ,
12791280 )
1281+ } else if ( / c a n a r y | e x p e r i m e n t a l / . test ( React . version ) ) {
1282+ // this is now minified on main
1283+ // https://github.com/facebook/react/pull/36277
1284+ await expect ( page . getByTestId ( 'action-error-boundary' ) ) . toContainText (
1285+ '(Error: Minified React error #441' ,
1286+ )
12801287 } else {
12811288 await expect ( page . getByTestId ( 'action-error-boundary' ) ) . toContainText (
12821289 '(Error: An error occurred in the Server Components render.' ,
You can’t perform that action at this time.
0 commit comments