Fix flaky redbox expectation in unstable_after e2e test (#66490)

This commit is contained in:
Hendrik Liebau 2024-06-03 15:11:11 +02:00 committed by GitHub
parent 994d8ee2c3
commit 41c1af30d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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\./
)