GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(web): migrate browser tests to the disposable render helper (7/8) by juliusmarminge · Pull Request #22273 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Oct 20, 2026

Copy link
Copy Markdown
Member

Migrates chunk 7 of the remaining web browser tests to the disposable render convention approved in #22187. Each test owns its screen and spies with using/await using; mock state resets explicitly through setup(). Existing assertions and all 95 test cases are preserved. No product UI changes, so screenshots do not apply.

The baseline lint list contains 132 files, with chunks of ceil(132/8) = 17; this is sorted entries 103–119.

Files:

  • apps/web/src/components/settings/SettingsPanels.restore.browser.test.tsx
  • apps/web/src/components/settings/SnapShotSettings.browser.test.tsx
  • apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsx
  • apps/web/src/components/settings/StorageSettings.browser.test.tsx
  • apps/web/src/components/settings/TelemetryExportSettings.browser.test.tsx
  • apps/web/src/components/settings/ThemeEditorHost.browser.test.tsx
  • apps/web/src/components/settings/settingsLayout.browser.test.tsx
  • apps/web/src/components/settings/settingsScopeRetention.browser.test.tsx
  • apps/web/src/components/settings/useProjectScriptSettings.browser.test.tsx
  • apps/web/src/components/settings/useSnapShotShortcutRecorder.browser.test.tsx
  • apps/web/src/components/ui/sidebar.browser.test.tsx
  • apps/web/src/components/ui/switch.browser.test.tsx
  • apps/web/src/components/usage/UsageLimitsPooled.browser.test.tsx
  • apps/web/src/components/usage/UsagePage.browser.test.tsx
  • apps/web/src/components/usage/UsagePage.refresh.browser.test.tsx
  • apps/web/src/hooks/useActiveThreadRef.browser.test.tsx
  • apps/web/src/hooks/useEnvironmentDisconnectDelay.browser.test.tsx

No files left unmigrated. The DOM-only settingsLayout tests use disposable DOM fixtures and spies instead of a React render.

router: false: useEnvironmentDisconnectDelay.browser.test.tsx (all three tests), because the fake clock tests only the disconnect delay and should not also run a test router. Other renders retain the helper's default router.

Validation:

  • Run 1: 17/17 files, 95/95 tests passed (50.74s); 0 act / 0 act-environment / 0 router warnings.

  • Run 2: 17/17 files, 95/95 tests passed (49.39s); 0 act / 0 act-environment / 0 router warnings.

  • Run 3: 17/17 files, 95/95 tests passed (49.82s); 0 act / 0 act-environment / 0 router warnings.

  • Web typecheck passed (existing Effect suggestions only).

  • Targeted lint passed: 0 warnings, including 0 t3code/require-disposable-render warnings.

  • git diff --check passed.

Browser tests ran serially with --project browser --reporter=verbose --maxWorkers=1, under a shared lock. Output also includes existing primary-environment discovery messages and the Vite mock-interceptor diagnostic; the React act, act-environment, and router warning counts above are zero.

Implementation model/harness: gpt-6.1-sol through Codex.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge
test(web): migrate browser tests to disposable render helper (7/8)
878c22d
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL 500-999 changed lines (additions + deletions). labels Oct 20, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 20, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 878c22d

Macroscope's review found this PR approvable — This PR migrates browser tests to a disposable render helper, with all 17 changed files confined to repository-ignored paths. No customer-facing runtime behavior or product defaults are indicated.

Notes:

  • No code objects were reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge merged commit 04ec1af into test/web-test-audit Oct 20, 2026
29 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge deleted the test/web-migrate-7 branch October 20, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XL 500-999 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.