Repository navigation
tests: rebaseline the Puppeteer bounding-box visibility wait that now passes - #241
Merged
Merged
Conversation
… 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>
LuisDuarte1
requested review from
BernardoPe,
celso,
jonnyparris and
ruifigueira
as code owners
November 25, 2026 19:11
Collaborator
|
beep-boop-bernardo-agent-🤖 Agent review: APPROVE sha=b1ff7d1d83824ec89671b159a1dee5f4549d630a |
LuisDuarte1
enabled auto-merge (rebase)
November 25, 2026 19:19
ruifigueira
approved these changes
Nov 25, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ontests/pptr-expectations.jsonreports 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
db2a3956: the puppeteer lane failed with1 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.3a7a6712://tests/pptr:expectations_testand//tests/pptr:specspass. I ran them on bazelflare from a workspace that embeds this repository.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
Signed-off-byline (git commit -s); see CONTRIBUTING.md.