Skip to content

feat(playwright): use the playwright bundle configuration when registered - #206

Merged
kbond merged 1 commit into
zenstruck:1.xfrom
kbond:require-playwright-bundle
Aug 24, 2026
Merged

feat(playwright): use the playwright bundle configuration when registered#206
kbond merged 1 commit into
zenstruck:1.xfrom
kbond:require-playwright-bundle

Conversation

@kbond

@kbond kbond commented Aug 24, 2026

Copy link
Copy Markdown
Member

HasBrowser built the client with four arguments, so everything after them defaulted to null: the bundle's AssetServer, playwright.base_url and playwright.intercepted_hosts were all ignored. PlaywrightTestCase resolves them from the container, so behaviour differed by entry point.

The asset server is the one that hurts. It serves AssetMapper output without going through the kernel, and framework.asset_mapper.server defaults to %kernel.debug%, so an app whose test env runs with APP_DEBUG=0 had every css and js request 404 - unstyled page, no javascript, which is the whole point of using a real browser.

The bundle stays optional: its configuration is used when it is registered and enabled, and its absence falls back to the previous defaults. The fixture app registers it, so the existing playwright tests now run through the resolved asset server, base url and intercepted hosts.

Closes #204. Thanks @ker0x for the diagnosis - it was accurate down to the service definition.

…ered

The client was built with four arguments, so the bundle asset server, base url and intercepted hosts were ignored. Without the asset server, assets 404 in an app whose test env runs with `APP_DEBUG=0`.
@kbond
kbond force-pushed the require-playwright-bundle branch from 1784ad4 to f28ab44 Compare August 24, 2026 15:56
@kbond kbond changed the title feat(playwright)!: require the playwright bundle for the PlaywrightBrowser feat(playwright): use the playwright bundle configuration when registered Aug 24, 2026
@kbond
kbond merged commit 3716980 into zenstruck:1.x Aug 24, 2026
33 of 34 checks passed
@kbond
kbond deleted the require-playwright-bundle branch August 24, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

PlaywrightBrowser: HasBrowser ignores the bundle's AssetServer, so assets 404 when APP_DEBUG=0

1 participant