-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test to check if the page reloaded differently
- Loading branch information
1 parent
af59027
commit eca4f6b
Showing
3 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
test/e2e/app-dir/app-basepath-custom-server/custom-server/app/layout.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { Counter } from '../components/counter' | ||
export default function Root({ children }) { | ||
return ( | ||
<html> | ||
<body>{children}</body> | ||
<body> | ||
<Counter /> | ||
{children} | ||
</body> | ||
</html> | ||
) | ||
} |
14 changes: 14 additions & 0 deletions
14
test/e2e/app-dir/app-basepath-custom-server/custom-server/components/counter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use client' | ||
import { useState } from 'react' | ||
|
||
export function Counter() { | ||
const [count, setCount] = useState(0) | ||
return ( | ||
<div> | ||
<p id="current-count">Count: {count}</p> | ||
<button onClick={() => setCount(count + 1)} id="increase-count"> | ||
Increment | ||
</button> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters