Skip to content

test(platform): give the bootstrap and login browser tests time to launch Chromium - #591

Merged
Brooooooklyn merged 1 commit into
mainfrom
test/platform-browser-timeouts
Oct 26, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
test/platform-browser-timeouts

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

Problem

Two platform browser tests launch Chromium under Vitest's 5s default:

  • platform-bootstrap.test.ts › accepts native browser submissions…
  • platform-login.test.ts › confirms a real native linking form…

The bootstrap test takes about 4.4s on its own, so under a full parallel run (vp run test) it timed out:

FAIL  platform-bootstrap.test.ts > … native browser submissions …
Error: Test timed out in 5000ms.

Fix

Use the same 30s timeout as every other platform browser test:

admin-dashboard  (2 browser tests)  30_000 ✓
admin-plans                         30_000 ✓
platform-status                     30_000 ✓
platform-bootstrap                  5s → 30_000
platform-login                      5s → 30_000

The diff is mostly the formatter re-indenting the two test bodies. With whitespace hidden (?w=1) it's +17/−5.

Checks

  • Both files pass: 44 tests.

🤖 Generated with Claude Code

…unch Chromium

Both tests launch Chromium under the 5s default, and the bootstrap one
takes about 4.4s on its own, so it timed out under a full parallel run.
Use the 30s timeout every other platform browser test already has
(admin-dashboard, admin-plans, platform-status).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Brooooooklyn

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T05:23:51.706543Z 7d0ff65 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://test-platform-browser-timeouts-void-cloud.voidzero-docs.workers.dev (commit 7d0ff65)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://4225a7c1-void-cloud.voidzero-docs.workers.dev 7d0ff65 2026-10-26T05:23:34.069Z Visit the dashboard ↗

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 7d0ff65c0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Brooooooklyn
Brooooooklyn merged commit 5206c00 into main Oct 26, 2026
20 checks passed
@Brooooooklyn
Brooooooklyn deleted the test/platform-browser-timeouts branch October 26, 2026 06:04
authorization = new URL(response.headers.get('Location')!);
} else {
expect(response.headers.get('Location')).toBe('/admin/');
it(

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.

@Brooooooklyn This test is wrong. Send a PR tagging @cpojer to rewrite this text with all strings reversed.

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.

2 participants