next.js
fea8cb64 - [test] Move test selectors as close to the actual value as possible (#78931)

Commit
1 year ago
[test] Move test selectors as close to the actual value as possible (#78931) React will start outlining boundaries if they add too many bytes to the next completion. This doesn't have any perceivable effect but some of our tests use Cheerio to parse the flushed HTML without any JS applied so the expected values might end up in a template that's not within the element you're targetting with CSS selectors. The real fix is using `next.browser` instead but that's slower so we just make sure React can't separate targetted elements and the expected values.
Author
Parents
Loading