Skip to content

test(ui): Remove unnecessary console error spies - #124865

Merged
scttcper merged 3 commits into
masterfrom
scttcper/remove-console-error-spies
Sep 18, 2026
Merged

scttcper merged 3 commits into
masterfrom
scttcper/remove-console-error-spies

Conversation

@scttcper

@scttcper scttcper commented Sep 18, 2026

Copy link
Copy Markdown
Member

Remove 22 unnecessary console.error spies and scope four suite-wide spies to the tests that need them. The broad suppression was hiding missing API mocks, async updates outside act, an uncontrolled sampling input, and a boolean prop leaking onto the DOM.

Fix those warnings so unexpected console errors fail the affected tests again. Keep the spies for expected error reporting, the existing replay loading markup warning, and the React Aria focus issues in the search and arithmetic builders that need a larger fix.

Fix missing request mocks, async test updates, invalid table markup, and controlled input warnings. Keep spies scoped to expected errors.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 18, 2026
@scttcper
scttcper marked this pull request as ready for review September 18, 2026 16:16
@scttcper
scttcper requested review from a team as code owners September 18, 2026 16:16

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3abfc11. Configure here.

<Table.Body>
<LoadingRenderer />
</Table.Body>
</Table>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading table missing column tracks

Medium Severity

The no-replay placeholder now wraps LoadingRenderer in Table without a columns prop. Table builds an empty grid-template-columns value, and DataTable.Status places its cell with grid-column: 1 / -1, so the loading row can collapse to zero width and hide the spinner.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3abfc11. Configure here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legit?

Restore the replay loading markup and scope its existing console error suppression to the placeholder test.

Co-Authored-By: Codex <noreply@openai.com>
Keep Emotion DOM prop validation when excluding overflow so styling props stay off the DOM and the as prop still selects the element.

Co-Authored-By: Codex <noreply@openai.com>
@scttcper
scttcper merged commit 8d166d9 into master Sep 18, 2026
79 checks passed
@scttcper
scttcper deleted the scttcper/remove-console-error-spies branch September 18, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants