Skip to content

Fail the tests when a page renders nothing - #3391

Merged
howardchung merged 1 commit into
odota:masterfrom
geracosta:testcafe-detect-blank
Oct 1, 2026
Merged

howardchung merged 1 commit into
odota:masterfrom
geracosta:testcafe-detect-blank

Conversation

@geracosta

Copy link
Copy Markdown
Contributor

replaces the blanket --skip-js-errors with a per fixture filter for Failed to fetch, which is the one the request hooks provoke, and gives each test a chance to actually load before checking that something rendered.

on a build with the Percent.tsx breakage from #3384: 1/74 fails with nothing rendered into #root. on master: 74 passed.

the run goes from about 44s to 1m14s at concurrency 4. the 3 second wait is arbitrary and machine dependent, and this only catches a page that renders nothing at all, not a component that renders wrong without throwing. happy to tune or drop the wait if you'd rather trade the coverage back.

Closes #3390

@howardchung
howardchung merged commit b1402ba into odota:master Oct 1, 2026
1 check passed
@geracosta
geracosta deleted the testcafe-detect-blank branch October 3, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The test suite passes on a page that renders nothing

2 participants