rsnext/test/lib
Jiachi Liu c1980ce7b9
Display only one hydration error when there's few in error overlay (#62448)
## What & Why

When there's a bad nesting HTML tags occurred, we want to show the
hydration mismatch with the warning of bad nesting.

Multiple hydration errors emitted from `onRecoverableError` as react is
trying re-render on client, and few more errors could throw from
different places. But for alert the issue, we only need to know one
hydration mismatch error instead of


### After
Show the toast with error number first and only show one hydration error
when you open
<img width="200"
src="https://github.com/vercel/next.js/assets/4800338/b57e73b9-60a6-4f09-9b71-e052121666f2"><img
width="500"
src="https://github.com/vercel/next.js/assets/4800338/9d409422-d513-4da0-ad6c-002c1ba7c497">

### Before

Mutiple hydration errors are displayed
<img width="200"
src="https://github.com/vercel/next.js/assets/4800338/8d6696a8-30de-496f-a9c4-bafb7d1f1d4c"><img
width="500"
src="https://github.com/vercel/next.js/assets/4800338/bc72bea9-85be-4bb2-b007-b88e655ade4e">


Closes NEXT-2315
2024-02-26 18:02:07 +01:00
..
browsers refactor(tests): make chain more "correct" (#51728) 2024-02-14 20:14:24 +01:00
next-modes Reapply "feat(app-router): introduce experimental.missingSuspenseWithCSRBailout flag" (#60508) (#60751) 2024-01-17 12:33:45 +01:00
test-data-service [PPR Nav] Fix flash of loading state during back/forward (#60578) 2024-01-12 14:18:54 -05:00
amp-test-utils.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
create-next-install.js test(fixture): separate pnpm cache for the test installation (#61783) 2024-02-08 13:53:42 -08:00
development-sandbox.ts Display only one hydration error when there's few in error overlay (#62448) 2024-02-26 18:02:07 +01:00
e2e-utils.ts refactor(tests): make chain more "correct" (#51728) 2024-02-14 20:14:24 +01:00
next-test-utils.ts Display only one hydration error when there's few in error overlay (#62448) 2024-02-26 18:02:07 +01:00
next-webdriver.ts refactor(tests): make chain more "correct" (#51728) 2024-02-14 20:14:24 +01:00
react-channel-require-hook.js Preload css (#48840) 2023-04-27 12:51:52 +02:00
test-log.ts [PPR Nav] Fix flash of loading state during back/forward (#60578) 2024-01-12 14:18:54 -05:00
turbo.ts remove --turbo, use --experimental-turbo as --turbo (#55063) 2023-09-06 17:46:54 +00:00
use-temp-dir.ts fix(cli): handle Tailwind CSS + src/ correctly (#47238) 2023-03-20 14:21:29 -07:00