@@ -4,50 +4,60 @@ test.describe('Escaped special strings routing', () => {
44 test ( 'escaped [index] route renders at /index path' , async ( { page } ) => {
55 await page . goto ( '/index' )
66
7- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Index Page' )
7+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
8+ 'Escaped Index Page' ,
9+ )
810 await expect ( page . getByTestId ( 'page-path' ) ) . toContainText ( '/index' )
911 await expect ( page . getByTestId ( 'page-description' ) ) . toContainText (
10- 'escape the special "index" token'
12+ 'escape the special "index" token' ,
1113 )
1214 } )
1315
1416 test ( 'escaped [route] route renders at /route path' , async ( { page } ) => {
1517 await page . goto ( '/route' )
1618
17- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Route Page' )
19+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
20+ 'Escaped Route Page' ,
21+ )
1822 await expect ( page . getByTestId ( 'page-path' ) ) . toContainText ( '/route' )
1923 await expect ( page . getByTestId ( 'page-description' ) ) . toContainText (
20- 'escape the special "route" token'
24+ 'escape the special "route" token' ,
2125 )
2226 } )
2327
2428 test ( 'escaped [lazy] route renders at /lazy path' , async ( { page } ) => {
2529 await page . goto ( '/lazy' )
2630
27- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Lazy Page' )
31+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
32+ 'Escaped Lazy Page' ,
33+ )
2834 await expect ( page . getByTestId ( 'page-path' ) ) . toContainText ( '/lazy' )
2935 await expect ( page . getByTestId ( 'page-description' ) ) . toContainText (
30- 'escape the special "lazy" token'
36+ 'escape the special "lazy" token' ,
3137 )
3238 } )
3339
3440 test ( 'escaped [_]layout route renders at /_layout path' , async ( { page } ) => {
3541 await page . goto ( '/_layout' )
3642
37- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Underscore Layout Page' )
43+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
44+ 'Escaped Underscore Layout Page' ,
45+ )
3846 await expect ( page . getByTestId ( 'page-path' ) ) . toContainText ( '/_layout' )
3947 await expect ( page . getByTestId ( 'page-description' ) ) . toContainText (
40- 'escape the leading underscore'
48+ 'escape the leading underscore' ,
4149 )
4250 } )
4351
4452 test ( 'escaped blog[_] route renders at /blog_ path' , async ( { page } ) => {
4553 await page . goto ( '/blog_' )
4654
47- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Blog Underscore Page' )
55+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
56+ 'Escaped Blog Underscore Page' ,
57+ )
4858 await expect ( page . getByTestId ( 'page-path' ) ) . toContainText ( '/blog_' )
4959 await expect ( page . getByTestId ( 'page-description' ) ) . toContainText (
50- 'escape the trailing underscore'
60+ 'escape the trailing underscore' ,
5161 )
5262 } )
5363
@@ -56,42 +66,55 @@ test.describe('Escaped special strings routing', () => {
5666 await page . getByTestId ( 'link-index' ) . click ( )
5767 await page . waitForURL ( '/index' )
5868
59- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Index Page' )
69+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
70+ 'Escaped Index Page' ,
71+ )
6072 } )
6173
6274 test ( 'client-side navigation to escaped /route route' , async ( { page } ) => {
6375 await page . goto ( '/index' )
6476 await page . getByTestId ( 'link-route' ) . click ( )
6577 await page . waitForURL ( '/route' )
6678
67- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Route Page' )
79+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
80+ 'Escaped Route Page' ,
81+ )
6882 } )
6983
7084 test ( 'client-side navigation to escaped /lazy route' , async ( { page } ) => {
7185 await page . goto ( '/index' )
7286 await page . getByTestId ( 'link-lazy' ) . click ( )
7387 await page . waitForURL ( '/lazy' )
7488
75- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Lazy Page' )
89+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
90+ 'Escaped Lazy Page' ,
91+ )
7692 } )
7793
7894 test ( 'client-side navigation to escaped /_layout route' , async ( { page } ) => {
7995 await page . goto ( '/index' )
8096 await page . getByTestId ( 'link-underscore-layout' ) . click ( )
8197 await page . waitForURL ( '/_layout' )
8298
83- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Underscore Layout Page' )
99+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
100+ 'Escaped Underscore Layout Page' ,
101+ )
84102 } )
85103
86104 test ( 'client-side navigation to escaped /blog_ route' , async ( { page } ) => {
87105 await page . goto ( '/index' )
88106 await page . getByTestId ( 'link-blog-underscore' ) . click ( )
89107 await page . waitForURL ( '/blog_' )
90108
91- await expect ( page . getByTestId ( 'page-title' ) ) . toContainText ( 'Escaped Blog Underscore Page' )
109+ await expect ( page . getByTestId ( 'page-title' ) ) . toContainText (
110+ 'Escaped Blog Underscore Page' ,
111+ )
92112 } )
93113
94- test ( 'URL is correct for escaped routes with underscores' , async ( { page, baseURL } ) => {
114+ test ( 'URL is correct for escaped routes with underscores' , async ( {
115+ page,
116+ baseURL,
117+ } ) => {
95118 await page . goto ( '/_layout' )
96119 expect ( page . url ( ) ) . toBe ( `${ baseURL } /_layout` )
97120
0 commit comments