Repository navigation
test: fix Lavamoat error with self onboarding flow using Playwright - #47267
Conversation
Builds ready [84b4f22] [reused from e3a14ee]
⚡ Performance Benchmarks (Total: 🟢 6 pass · 🟡 4 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [0c980f9] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [04472ed] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [16bd34a] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [59bfdcf] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [afd5e68] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [16da5e4] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Builds ready [e68c505] [reused from fe9761a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
|
No release label on PR. Adding release label release-13.56.0 on PR, as PR was added to branch 13.56.0 when release was cut. |
Description
Fixes LavaMoat scuttling errors when running Playwright tests against production Chrome extension builds.
Changes:
Fixes: https://consensyssoftware.atlassian.net/browse/AIENG-249
Note: we also need this for our Selenium => Playwright migration, so I aimed for fixing the playwright driver methods instead of bypassing the use of the paste which triggered the error (as it will eventually appear in our e2e once we keep migrating).
Changelog
CHANGELOG entry:
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/AIENG-249
Manual testing steps
yarn mm cleanup --shutdownecho "SRP" | yarn mm launch --context prod --state onboarding --self-onboardingScreenshots/Recordings
Before
See before and after
Screen.Recording.2026-10-22.at.11.56.34.mov
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Changes are limited to E2E/Playwright test infrastructure and the LLM extension launcher, not production extension code.
Overview
Fixes Playwright self-onboarding and related E2E flows on dist Chrome builds where LavaMoat scuttling broke
page.evaluate/ locator evaluation (e.g.Float32Arrayduring serialization) and where forcinghome.htmlon a blank tab fought dist’s auto-opened extension page.extension-launcher: After resolving the extension ID, it polls up to 3s for an existingchrome-extension://tab and reuses it; only if none appears does it open a blank tab and navigate tohome.html.driver-playwright: On Chrome extension pages,executeScriptruns via CDPRuntime.evaluatein the main world, andpasteIntoFielddispatches paste through CDP isolated-world evaluation (with keyboard fallback). Non-extension pages and Firefox keep the previous Playwright paths.Reviewed by Cursor Bugbot for commit e68c505. Bugbot is set up for automated code reviews on this repo. Configure here.