File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const Index = ({ shows }) => (
31
31
Refresh this page to see it change.
32
32
</ p >
33
33
34
- < ul >
34
+ < ul data-testid = "list-server-side" >
35
35
{ shows . map ( ( { id, name } ) => (
36
36
< li key = { id } >
37
37
< Link href = "/shows/[id]" as = { `/shows/${ id } ` } >
@@ -50,7 +50,7 @@ const Index = ({ shows }) => (
50
50
Click on a show to check out a server-side rendered page with dynamic routing (/shows/:id).
51
51
</ p >
52
52
53
- < ul >
53
+ < ul data-testid = "list-dynamic-pages" >
54
54
{ shows . slice ( 0 , 3 ) . map ( ( { id, name } ) => (
55
55
< li key = { id } >
56
56
< Link href = "/shows/[id]" as = { `/shows/${ id } ` } >
@@ -70,7 +70,7 @@ const Index = ({ shows }) => (
70
70
< br />
71
71
Here are three examples:
72
72
</ p >
73
- < ul >
73
+ < ul data-testid = "list-catch-all" >
74
74
< li >
75
75
< Link href = "/shows/[...params]" as = { `/shows/73/whatever/path/you/want` } >
76
76
< a > /shows/73/whatever/path/you/want</ a >
@@ -97,7 +97,7 @@ const Index = ({ shows }) => (
97
97
Static pages are pre-rendered and served directly by Netlify's CDN.
98
98
</ p >
99
99
100
- < ul >
100
+ < ul data-testid = "list-static" >
101
101
< li >
102
102
< Link href = "/static" >
103
103
< a > Static NextJS page: /static</ a >
You can’t perform that action at this time.
0 commit comments