Skip to content

docs(reference): list waitForURL's timeout override and the tab actions in ActionName - #2496

Open
gagarinyury wants to merge 1 commit into
e2e-inc:mainfrom
gagarinyury:docs/reference-waitforurl-timeout-tab-actions
Open

gagarinyury wants to merge 1 commit into
e2e-inc:mainfrom
gagarinyury:docs/reference-waitforurl-timeout-tab-actions

Conversation

@gagarinyury

@gagarinyury gagarinyury commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What

  • docs/reference/web.mdx: waitForURL added to the members that take { timeout }. The page said no other member takes one, while its own waitForURL section shows the option.
  • docs/reference/agent.mdx: 'switchTab' | 'closeTab' added to ActionName.

Why

browser.waitForURL accepts { timeout } (packages/web/src/browser.ts). ActionName is Exclude<RecordedAction['name'], 'tool'> (packages/core/src/types.ts), and RecordedAction has switchTab and closeTab, which onAction reports. A switch written from the documented union misses them.

How it works

  1. Two lines in two English reference pages. The translations carry the same text and are left to the translation pass.

Issue

Docs only.

Verified

Ran it locally: yes. pnpm docs:check passes.

Checklist

  • Changeset added (pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.
  • Breaking change: title carries !, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).
  • Docs updated in the same PR: the docs/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.

🤖 Generated with Claude Code

View guided diff

Summary by CodeRabbit

  • Documentation
    • Documented switchTab and closeTab as available agent actions.
    • Clarified that waitForURL supports a timeout override capped by the test deadline.

…ns in ActionName

browser.waitForURL takes { timeout } (browser.ts accepts it and the
waitForURL section shows it), but the override list left it out and said
no other member takes one. ActionName is RecordedAction's names without
tool, which include switchTab and closeTab; onAction reports them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the size:XS Up to 9 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Agent action names

Layer / File(s) Summary
Document additional action names
docs/reference/agent.mdx
The ActionName union now includes switchTab and closeTab.

Browser timeout options

Layer / File(s) Summary
Document waitForURL timeout override
docs/reference/web.mdx
The timeout-override list now includes waitForURL. The documentation states that the override remains capped by the test deadline.

Suggested reviewers: krzysztofmoch

Change: Other

Merge Risk: Minimal · up to 41388

This is a documentation-only update that lists switchTab and closeTab as action names and waitForURL as accepting a timeout override. The source evidence matches the docs, and there is no runtime behavior change or merge risk.

Architecture risk: Low · up to 41388

The change affects 1 source area.

Changed areas: docs

Review details

Systems and components

  • observed — 2 changed files mapped to docs.

Before / after behavior

  • observed — Modified behavior in docs/reference/agent.mdx: ActionName adds switchTab and closeTab to the existing action-name union.
  • observed — Modified behavior in docs/reference/web.mdx: The timeout-override list now includes waitForURL; the surrounding documentation states that the override remains capped by the test deadline.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6ede6643-5e36-4411-ba81-9b30c3620b22
Commits

Reviewing files that changed from the base of the PR and between 7c1b2b2 and 4138844.

Files selected for processing: 2

  • docs/reference/agent.mdx
  • docs/reference/web.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 2 files

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

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.

Automated review (AI triage pass), not yet read by a maintainer.

Reviewed 4138844d2. Two English reference fixes. Both are correct against the code. No must-fixes.

What I checked:

  • waitForURL takes { timeout } (browser.ts:376, :858) and passes it to pollBrowser → deps.deadlineFor(timeout, ...), the same deadline helper the other listed members use. The page's own waitForURL example already passes { timeout: 15_000 } (web.mdx:623), so "No other member takes an override" was wrong before this PR. After it, the list matches the Browser interface: goto, reload, back, forward, waitForURL, waitForResponse, waitForRequest, waitForPopup and the download waits.
  • ActionName = Exclude<RecordedAction['name'], 'tool'> (types.ts:250), and RecordedAction includes SwitchTabAction and CloseTabAction (trace.ts:404), which the dispatcher emits (action-dispatcher.ts:511). With them added, the documented union (agent.mdx:576) matches the real one name for name.
  • Both pages still exist on main after #2448. The PR is mergeable and touches no files outside the English docs.

Nits

  1. web.mdx:545 is a long line that was already over the wrap width. Re-wrapping it to about 80 columns would match the rest of the page. Optional.

For the maintainer

  • Fork CI (docs, spec, docs translations, etc.) is awaiting approval. The translated pages keep the old text. Translations are best effort, so that is fine.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:XS Up to 9 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants