@@ -10,12 +10,14 @@ test.describe('base path', () => {
1010 const html = await request . get ( '/slash/' , { headers : { Accept : 'text/html' } } ) ;
1111 expect ( html . status ( ) ) . toBe ( 404 ) ;
1212 expect ( await html . text ( ) ) . toBe (
13- 'Not found ( did you mean <a href="/path-base/slash/">/path-base/slash/</a>?) '
13+ 'The server is configured with a public base URL of /path-base - did you mean to visit <a href="/path-base/slash/">/path-base/slash/</a> instead? '
1414 ) ;
1515
1616 const plain = await request . get ( '/slash/' ) ;
1717 expect ( plain . status ( ) ) . toBe ( 404 ) ;
18- expect ( await plain . text ( ) ) . toBe ( 'Not found (did you mean /path-base/slash/?)' ) ;
18+ expect ( await plain . text ( ) ) . toBe (
19+ 'The server is configured with a public base URL of /path-base - did you mean to visit /path-base/slash/ instead?'
20+ ) ;
1921 } ) ;
2022
2123 test ( 'serves /' , async ( { page, javaScriptEnabled } ) => {
@@ -248,9 +250,9 @@ test.describe('Vite options', () => {
248250
249251test . describe ( 'Routing' , ( ) => {
250252 test ( 'ignores clicks outside the app target' , async ( { page } ) => {
251- await page . goto ( '/path-base/routing/link-outside-app-target/source' ) ;
253+ await page . goto ( '/path-base/routing/link-outside-app-target/source/ ' ) ;
252254
253- await page . click ( '[href="/path-base/routing/link-outside-app-target/target"]' ) ;
255+ await page . click ( '[href="/path-base/routing/link-outside-app-target/target/ "]' ) ;
254256 await expect ( page . locator ( 'h2' ) ) . toHaveText ( 'target: 0' ) ;
255257 } ) ;
256258} ) ;
0 commit comments