11import { expect , test } from '@playwright/test'
22import { setupInlineFixture , type Fixture , useFixture } from './fixture'
33import {
4+ expectNoPageError ,
45 expectNoReload ,
56 testNoJs ,
67 waitForHydration as waitForHydration_ ,
@@ -51,6 +52,13 @@ test.describe('dev-production', () => {
5152 } ,
5253 } )
5354 defineTest ( f , 'dev-production' )
55+
56+ test ( 'verify production' , async ( { page } ) => {
57+ await page . goto ( f . url ( ) )
58+ await waitForHydration_ ( page )
59+ const res = await page . request . get ( f . url ( 'src/client.tsx' ) )
60+ expect ( await res . text ( ) ) . not . toContain ( 'jsxDev' )
61+ } )
5462} )
5563
5664test . describe ( 'build-development' , ( ) => {
@@ -62,6 +70,10 @@ test.describe('build-development', () => {
6270 } ,
6371 } )
6472 defineTest ( f )
73+
74+ test ( 'verify development' , async ( ) => {
75+ // TODO
76+ } )
6577} )
6678
6779test . describe ( ( ) => {
@@ -230,6 +242,7 @@ function defineTest(f: Fixture, variant?: 'no-ssr' | 'dev-production') {
230242 waitForHydration_ ( page , variant === 'no-ssr' ? '#root' : 'body' )
231243
232244 test ( 'basic' , async ( { page } ) => {
245+ using _ = expectNoPageError ( page )
233246 await page . goto ( f . url ( ) )
234247 await waitForHydration ( page )
235248 } )
0 commit comments