Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
efbc187d
Unverified
Commit
efbc187d
authored
Oct 29, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Oct 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Speed up refresh test (#85505)
parent
69ccb0b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
basic.test.ts
test/development/app-dir/basic/basic.test.ts
+5
-13
No files found.
test/development/app-dir/basic/basic.test.ts
View file @
efbc187d
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
waitFor
}
from
'next-test-utils'
import
{
assertNoRedbox
}
from
'next-test-utils'
import
{
createSandbox
,
waitForHydration
}
from
'development-sandbox'
import
{
waitForHydration
}
from
'development-sandbox'
describe
(
'basic app-dir tests'
,
()
=>
{
describe
(
'basic app-dir tests'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
...
@@ -8,18 +8,10 @@ describe('basic app-dir tests', () => {
...
@@ -8,18 +8,10 @@ describe('basic app-dir tests', () => {
})
})
it
(
'should reload app pages without error'
,
async
()
=>
{
it
(
'should reload app pages without error'
,
async
()
=>
{
await
using
sandbox
=
await
createSandbox
(
next
,
undefined
,
'/'
)
const
browser
=
await
next
.
browser
(
'/'
)
const
{
session
,
browser
}
=
sandbox
await
browser
.
refresh
()
await
session
.
assertNoRedbox
()
browser
.
refresh
()
await
waitFor
(
750
)
await
waitForHydration
(
browser
)
await
waitForHydration
(
browser
)
for
(
let
i
=
0
;
i
<
15
;
i
++
)
{
await
assertNoRedbox
(
browser
)
await
session
.
assertNoRedbox
()
await
waitFor
(
1000
)
}
})
})
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment