Skip to content

Port page-goto, set-content and wait-for-selector-2 tests, add content includeShadow - #81

Open
kblok wants to merge 1 commit into
mainfrom
port/goto-setcontent
Open

kblok wants to merge 1 commit into
mainfrom
port/goto-setcontent

Conversation

@kblok

@kblok kblok commented Oct 6, 2026

Copy link
Copy Markdown
Member

Upstream added page.content({ includeShadow: true }), which serializes open shadow roots as declarative shadow DOM. Microsoft.Playwright does not expose it yet, so it lands here as page.ContentAsync(new PageContentOptions { IncludeShadow = true }). All three engines use the upstream documentContent script. The COOP/COEP history-state goto tests needed no library change and now pass on Chromium and WebKit.

Seven upstream titles only test Node internals, so they get ignored twins with the reason written out. The three listener-leak tests watch for Node's MaxListenersExceededWarning. .NET events have no listener cap and no such warning. The two wait-for-selector tests drive __testHookBeforeAdoptNode. Local waitForSelector polls the main world and has no adoption step to hook into. The two setContent timeout tests use toImpl to tamper with the server utility world. Local setContent has no persistent utility world and no console.debug tag.

Closes #19, closes #44, closes #32

🤖 Generated with Claude Code

Add page.content({ includeShadow }) as ContentAsync(PageContentOptions),
serializing open shadow roots as declarative shadow DOM like upstream
injectedScript.documentContent. Port the COOP/COEP history-state goto
tests. Listener-leak, __testHookBeforeAdoptNode and toImpl utility-world
setContent tests get Node-only ignored twins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

None yet

Projects

None yet

1 participant