Skip to content

Comments

fix: increase browser screenshot test timeouts from 20s to 30s#2059

Merged
nick-inkeep merged 1 commit intomainfrom
fix/browser-test-timeout
Feb 17, 2026
Merged

fix: increase browser screenshot test timeouts from 20s to 30s#2059
nick-inkeep merged 1 commit intomainfrom
fix/browser-test-timeout

Conversation

@nick-inkeep
Copy link
Collaborator

Summary

  • Bumps all three browser screenshot test timeouts from 20_000 to 30_000 ms (form.browser.test.tsx x2, nodes.browser.test.tsx x1)
  • Fixes intermittent CI timeout on should properly highlight nested error state caused by tight headroom — the toMatchScreenshot() matcher alone reserves 15s of the 20s budget, leaving insufficient time for Playwright init + Monaco boot + form validation on slower CI runners
  • The timeout is a ceiling, not a delay — passing tests finish at normal speed

Test plan

  • CI browser tests pass consistently (no more flaky timeout)
  • Non-browser agents-manage-ui tests unaffected
  • Lint/format/typecheck clean

The nested error state browser test flakes on CI due to tight timeout
budget — 20s total with 15s reserved for toMatchScreenshot leaves only
5s for Playwright init, React render, Monaco boot, and form validation.

Bump all three browser screenshot tests to 30s for consistent headroom.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 17, 2026 1:29pm
agents-manage-ui Ready Ready Preview, Comment Feb 17, 2026 1:29pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
agents-docs Skipped Skipped Feb 17, 2026 1:29pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: 3637198

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

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

PR Review Summary

(0) Total Issues | Risk: Low

This PR increases browser screenshot test timeouts from 20s to 30s across three tests in agents-manage-ui. The change is well-justified and addresses a legitimate CI flakiness issue.

Analysis

The timeout adjustment is appropriate because:

  1. Tight budget with previous timeout: The toMatchScreenshot() matcher is configured with a 15-second timeout in vitest.config.ts (line 64). With the previous 20-second test timeout, only 5 seconds remained for Playwright initialization, React component rendering, Monaco Editor boot, and form validation.

  2. Variable CI performance: Slower CI runners can exceed this tight headroom, causing intermittent failures even when tests pass locally.

  3. Consistent application: All three browser screenshot tests now use the same 30-second timeout, providing uniform behavior.

  4. No performance impact: As the author notes, timeouts are ceilings — passing tests complete at normal speed regardless of the configured maximum.

Verification

  • ✅ Change is minimal and well-scoped (+3/-3 lines)
  • ✅ All browser screenshot tests now have consistent timeout values
  • ✅ No production code affected — purely test infrastructure
  • ✅ No customer-facing surface impact

✅ APPROVE

Summary: Clean fix for flaky CI browser tests. The 30-second timeout provides appropriate headroom given the 15-second toMatchScreenshot matcher configuration. Ship it! 🚀

Reviewers (2)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-standards 0 0 0 0 0 0 0
pr-review-tests 0 0 0 0 0 0 0
Total 0 0 0 0 0 0 0

@github-actions github-actions bot deleted a comment from claude bot Feb 17, 2026
@nick-inkeep nick-inkeep merged commit aaa9b8d into main Feb 17, 2026
12 checks passed
@nick-inkeep nick-inkeep deleted the fix/browser-test-timeout branch February 17, 2026 13:37
dimaMachina pushed a commit that referenced this pull request Feb 19, 2026
The nested error state browser test flakes on CI due to tight timeout
budget — 20s total with 15s reserved for toMatchScreenshot leaves only
5s for Playwright init, React render, Monaco boot, and form validation.

Bump all three browser screenshot tests to 30s for consistent headroom.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant