Skip to content

Commit 0136ae8

Browse files
author
Tiffany Le-Nguyen
committed
chore: add data-testid for the lists
1 parent fed6aa2 commit 0136ae8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo/pages/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Index = ({ shows }) => (
3131
Refresh this page to see it change.
3232
</p>
3333

34-
<ul>
34+
<ul data-testid="list-server-side">
3535
{shows.map(({ id, name }) => (
3636
<li key={id}>
3737
<Link href="/shows/[id]" as={`/shows/${id}`}>
@@ -50,7 +50,7 @@ const Index = ({ shows }) => (
5050
Click on a show to check out a server-side rendered page with dynamic routing (/shows/:id).
5151
</p>
5252

53-
<ul>
53+
<ul data-testid="list-dynamic-pages">
5454
{shows.slice(0, 3).map(({ id, name }) => (
5555
<li key={id}>
5656
<Link href="/shows/[id]" as={`/shows/${id}`}>
@@ -70,7 +70,7 @@ const Index = ({ shows }) => (
7070
<br />
7171
Here are three examples:
7272
</p>
73-
<ul>
73+
<ul data-testid="list-catch-all">
7474
<li>
7575
<Link href="/shows/[...params]" as={`/shows/73/whatever/path/you/want`}>
7676
<a>/shows/73/whatever/path/you/want</a>
@@ -97,7 +97,7 @@ const Index = ({ shows }) => (
9797
Static pages are pre-rendered and served directly by Netlify&apos;s CDN.
9898
</p>
9999

100-
<ul>
100+
<ul data-testid="list-static">
101101
<li>
102102
<Link href="/static">
103103
<a>Static NextJS page: /static</a>

0 commit comments

Comments
 (0)