@@ -410,12 +410,17 @@ function getFrameworkTestConfig(pm: string): NamedFrameworkTestConfig[] {
410410 timeout : LONG_TIMEOUT ,
411411 verifyDeploy : {
412412 route : "/" ,
413- expectedText : "Vite + React" ,
413+ // Note that this is the text in the static HTML that is returned
414+ // This React SPA will change this at runtime but we are only making a fetch request
415+ // not actually running the client side JS.
416+ // create-vite 8+ changed the <title> from "Vite + React + TS" to the project name,
417+ // so we match on the React root element instead.
418+ expectedText : '<div id="root">' ,
414419 } ,
415420 verifyPreview : {
416421 previewArgs : [ "--inspector-port=0" ] ,
417422 route : "/" ,
418- expectedText : "Vite + React" ,
423+ expectedText : '<div id="root">' ,
419424 } ,
420425 nodeCompat : false ,
421426 } ,
@@ -435,7 +440,9 @@ function getFrameworkTestConfig(pm: string): NamedFrameworkTestConfig[] {
435440 // Note that this is the text in the static HTML that is returned
436441 // This React SPA will change this at runtime but we are only making a fetch request
437442 // not actually running the client side JS.
438- expectedText : "Vite + React + TS" ,
443+ // create-vite 8+ changed the <title> from "Vite + React + TS" to the project name,
444+ // so we match on the React root element instead.
445+ expectedText : '<div id="root">' ,
439446 } ,
440447 verifyPreview : {
441448 route : "/" ,
@@ -445,7 +452,7 @@ function getFrameworkTestConfig(pm: string): NamedFrameworkTestConfig[] {
445452 // Note that this is the text in the static HTML that is returned
446453 // This React SPA will change this at runtime but we are only making a fetch request
447454 // not actually running the client side JS.
448- expectedText : "Vite + React + TS" ,
455+ expectedText : '<div id="root">' ,
449456 } ,
450457 nodeCompat : false ,
451458 } ,
@@ -892,7 +899,9 @@ function getExperimentalFrameworkTestConfig(
892899 // Note that this is the text in the static HTML that is returned
893900 // This React SPA will change this at runtime but we are only making a fetch request
894901 // not actually running the client side JS.
895- expectedText : "Vite + React + TS" ,
902+ // create-vite 8+ changed the <title> from "Vite + React + TS" to the project name,
903+ // so we match on the React root element instead.
904+ expectedText : '<div id="root">' ,
896905 } ,
897906 verifyPreview : {
898907 route : "/" ,
@@ -902,7 +911,7 @@ function getExperimentalFrameworkTestConfig(
902911 // Note that this is the text in the static HTML that is returned
903912 // This React SPA will change this at runtime but we are only making a fetch request
904913 // not actually running the client side JS.
905- expectedText : "Vite + React + TS" ,
914+ expectedText : '<div id="root">' ,
906915 } ,
907916 nodeCompat : false ,
908917 verifyTypes : false ,
0 commit comments