Skip to content

tests: rebaseline the Puppeteer bounding-box visibility wait that now passes - #241

Merged
LuisDuarte1 merged 1 commit into
mainfrom
lduarte/pptr-visible-bounding-box
Nov 25, 2026
Merged

LuisDuarte1 merged 1 commit into
mainfrom
lduarte/pptr-visible-bounding-box

Conversation

@LuisDuarte1

Copy link
Copy Markdown
Collaborator

Summary

Drops the FAIL pin for one Puppeteer spec that now passes: [waittask.test] Frame.waitForSelector should wait for element to be visible (bounding box).

The pin recorded the wait resolving with a handle where the spec expects none. The spec passes at main, so the gate on tests/pptr-expectations.json reports a deviation (expected FAIL, got PASS) and fails.

Behavior and API impact

None.

Implementation

One entry removed from tests/pptr-expectations.json. A spec with no entry is expected to pass.

Validation

  • Before, at db2a3956: the puppeteer lane failed with 1 deviation(s) from expectations: … should wait for element to be visible (bounding box): expected FAIL, got PASS, after the lane's one retry of a deviating spec.
  • After, with this change on 3a7a6712: //tests/pptr:expectations_test and //tests/pptr:specs pass. I ran them on bazelflare from a workspace that embeds this repository.
  • Not checked: which commit made the spec pass. This repository's CI does not run the puppeteer lane, so its checks say nothing about this file.

Risks and follow-ups

If the spec is timing-dependent and fails again, the gate will report it as a deviation in the other direction.

Checklist

  • This pull request solves one problem; see CONTRIBUTING.md.
  • Every commit has a Signed-off-by line (git commit -s); see CONTRIBUTING.md.
  • Added or updated focused tests for behavior changes.
  • Updated documentation and generated files, or confirmed they do not apply.

… passes

"Frame.waitForSelector should wait for element to be visible (bounding
box)" was pinned as FAIL: the wait resolved with a handle where the
spec expects none. It passes at main, and the internal e2e-pptr lane,
which retries a deviating spec once before it reports, flagged the pin
as a deviation (expected FAIL, got PASS). Drop the pin so the gate
stops reporting it.

beep-boop-🤖

Signed-off-by: Luís Duarte <lduarte@cloudflare.com>
@github-actions github-actions Bot added the vouch:trusted Author is vouched, a collaborator, or a bot. label Nov 25, 2026
@BernardoPe BernardoPe self-assigned this Nov 25, 2026
@BernardoPe

Copy link
Copy Markdown
Collaborator

beep-boop-bernardo-agent-🤖

Agent review: APPROVE sha=b1ff7d1d83824ec89671b159a1dee5f4549d630a

@BernardoPe BernardoPe added the Ready for human review An independent agent reviewed this exact commit and found nothing blocking label Nov 25, 2026
@LuisDuarte1
LuisDuarte1 enabled auto-merge (rebase) November 25, 2026 19:19
@BernardoPe BernardoPe removed their assignment Nov 25, 2026
@LuisDuarte1
LuisDuarte1 merged commit 0affe70 into main Nov 25, 2026
16 checks passed
ruifigueira added a commit that referenced this pull request Nov 27, 2026
The pinned WebMCP IDL (spec PRs #241, #246, #251, #253, #254, #348)
changed what getTools() returns and what executeTool() and
registerTool() accept. getTools() still returned RegisteredTool
dictionaries, and executeTool() found a tool by name, parsed a JSON
string and rejected every failure with UnknownError.

getTools() now returns instances of the exposed Tool interface, with
source instead of window, and null inputSchema, outputSchema and
annotations when the tool has none. Each Tool keeps the ID of the
registration it came from, and executeTool() runs only that
registration, so a same-named tool registered later is a
NotFoundError. A plain object is not a Tool and rejects with
TypeError. A Tool is a Proxy over its instance, so structuredClone()
throws DataCloneError and JSON.stringify() gives {}.

executeTool() takes an optional object, not a JSON string. A
primitive, or input that JSON cannot serialize, rejects with
TypeError. A failed tool or an unserializable result rejects with
OperationError, as the spec's tool execution errors say.
registerTool() converts its dictionary as WebIDL does, validates and
stores outputSchema like inputSchema, and keeps the debugging
annotation.

beep-boop-🤖

Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
ruifigueira added a commit that referenced this pull request Nov 27, 2026
The pinned WebMCP IDL (spec PRs #241, #246, #251, #253, #254, #348)
changed what getTools() returns and what executeTool() and
registerTool() accept. getTools() still returned RegisteredTool
dictionaries, and executeTool() found a tool by name, parsed a JSON
string and rejected every failure with UnknownError.

getTools() now returns instances of the exposed Tool interface, with
source instead of window, and null inputSchema, outputSchema and
annotations when the tool has none. Each Tool keeps the ID of the
registration it came from, and executeTool() runs only that
registration, so a same-named tool registered later is a
NotFoundError. A plain object is not a Tool and rejects with
TypeError. A Tool is a Proxy over its instance, so structuredClone()
throws DataCloneError and JSON.stringify() gives {}.

executeTool() takes an optional object, not a JSON string. A
primitive, or input that JSON cannot serialize, rejects with
TypeError. A failed tool or an unserializable result rejects with
OperationError, as the spec's tool execution errors say.
registerTool() converts its dictionary as WebIDL does, validates and
stores outputSchema like inputSchema, and keeps the debugging
annotation.

beep-boop-🤖

Signed-off-by: Rui Figueira <rfigueira@cloudflare.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for human review An independent agent reviewed this exact commit and found nothing blocking vouch:trusted Author is vouched, a collaborator, or a bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants