Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 2, 2024
1 parent 71bd613 commit 9d54774
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion test/e2e/app-dir/css-order/app/base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#hello {
#hello1,
#hello2 {
color: rgb(255, 0, 0);
}
2 changes: 1 addition & 1 deletion test/e2e/app-dir/css-order/app/global-first/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Nav from '../nav'
export default function Page() {
return (
<div>
<p id="hello">hello world</p>
<p id="hello1">hello world</p>
<Nav />
</div>
)
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/app-dir/css-order/app/global-first/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#hello {
#hello1,
#hello2 {
color: rgb(0, 255, 0);
}
2 changes: 1 addition & 1 deletion test/e2e/app-dir/css-order/app/global-second/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Nav from '../nav'
export default function Page() {
return (
<div>
<p id="hello">hello world</p>
<p id="hello2">hello world</p>
<Nav />
</div>
)
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/app-dir/css-order/app/global-second/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#hello {
#hello1,
#hello2 {
color: rgb(0, 0, 255);
}
4 changes: 2 additions & 2 deletions test/e2e/app-dir/css-order/css-order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ const PAGES: Record<
group: 'global',
conflict: true,
url: '/global-first',
selector: '#hello',
selector: '#hello1',
color: 'rgb(0, 255, 0)',
},
'global-second': {
group: 'global',
conflict: true,
url: '/global-second',
selector: '#hello',
selector: '#hello2',
color: 'rgb(0, 0, 255)',
},
}
Expand Down

0 comments on commit 9d54774

Please sign in to comment.