Skip to content

Fix browser E2E test failure#167

Merged
linyows merged 1 commit intomainfrom
fix-browser-e2e-test
Feb 17, 2026
Merged

Fix browser E2E test failure#167
linyows merged 1 commit intomainfrom
fix-browser-e2e-test

Conversation

@linyows
Copy link
Owner

@linyows linyows commented Feb 17, 2026

Summary

  • browser/client.go: Use chromedp.DefaultExecAllocatorOptions as the base for Chrome launch options instead of manually specifying a subset. This ensures all recommended flags (--disable-extensions, --enable-automation, --disable-sync, etc.) are included, preventing Chrome from hanging during startup on CI.
  • browser/client.go: Add chromedp.WSURLReadTimeout to match the user-specified timeout (e.g. 1m) instead of relying on chromedp's 20-second default, which was causing premature "websocket url timeout reached" errors.
  • .github/workflows/end-to-end-test.yml: Pin browser-actions/setup-chrome to a specific SHA to prevent unexpected Chrome version updates from breaking CI.

Test plan

  • go build ./... passes
  • go test ./... passes (all packages)
  • go test ./browser/... passes
  • Trigger E2E workflow to verify browser tests pass on CI

🤖 Generated with Claude Code

Use chromedp.DefaultExecAllocatorOptions as the base for Chrome launch
options instead of manually specifying a subset. This ensures all
recommended flags (disable-extensions, enable-automation, etc.) are
included, preventing Chrome from hanging during startup on CI.

Also add WSURLReadTimeout to match the user-specified timeout instead of
relying on the 20-second default, and pin setup-chrome action to a
specific SHA to prevent unexpected Chrome version updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link

Code Metrics Report

main (b8c517b) #167 (5745065) +/-
Coverage 56.0% 56.0% +0.0%
Code to Test Ratio 1:1.0 1:1.0 +0.0
Test Execution Time 21s 26s +5s
Details
  |                     | main (b8c517b) | #167 (5745065) |  +/-  |
  |---------------------|----------------|----------------|-------|
+ | Coverage            |          56.0% |          56.0% | +0.0% |
  |   Files             |             65 |             65 |     0 |
  |   Lines             |           6578 |           6579 |    +1 |
+ |   Covered           |           3685 |           3686 |    +1 |
+ | Code to Test Ratio  |          1:1.0 |          1:1.0 |  +0.0 |
  |   Code              |          12892 |          12888 |    -4 |
  |   Test              |          13269 |          13269 |     0 |
- | Test Execution Time |            21s |            26s |   +5s |

Code coverage of files in pull request scope (46.9% → 47.3%)

Files Coverage +/- Status
browser/client.go 47.3% +0.3% modified

Reported by octocov

@linyows
Copy link
Owner Author

linyows commented Feb 17, 2026

/run-e2e

@github-actions
Copy link

✅ E2E test passed successfully!

@linyows linyows merged commit ed0ad62 into main Feb 17, 2026
6 checks passed
@linyows linyows deleted the fix-browser-e2e-test branch February 17, 2026 13:28
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