Fix flaky redbox expectation in unstable_after
e2e test (#66490)
This commit is contained in:
parent
994d8ee2c3
commit
41c1af30d5
1 changed files with 1 additions and 0 deletions
|
@ -361,6 +361,7 @@ describe.each(runtimes)('unstable_after() in %s runtime', (runtimeValue) => {
|
|||
'/invalid-in-client'
|
||||
)
|
||||
try {
|
||||
expect(await session.hasRedbox()).toBe(true)
|
||||
expect(await session.getRedboxSource(true)).toMatch(
|
||||
/You're importing a component that needs "?unstable_after"?\. That only works in a Server Component but one of its parents is marked with "use client", so it's a Client Component\./
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue