test(e2e): bootstrap pages automatically - #6134
Draft
loganj wants to merge 2 commits into
Draft
Conversation
Collaborator
Author
|
nope, sending this back |
added 2 commits
August 17, 2026 13:04
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
loganj
force-pushed
the
fix/e2e-origin-bootstrap
branch
from
August 17, 2026 17:08
2429252 to
f7fe05a
Compare
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
Playwright E2E runs can surface
SecurityError: Failed to read the 'localStorage' property from 'Window'when the first app navigation never committed and the browser remains on opaque-originabout:blank. The storage error hides the real problem: a missing E2E build or unavailable preview server.This PR makes app-origin bootstrap automatic for every desktop and web E2E test. Test bodies now begin only after a successful HTTP navigation to the configured origin, so a failed first navigation reports its expected origin, current URL, and the build/preview-server remedy at the fault.
testAPI that automatically bootstraps the page afterbeforeEachsetup and before each test body. All E2E specs import that API rather than@playwright/testdirectly.test.use({ e2eBootstrap: false })and invoke the guarded bootstrap after registering setup. The draft-storage test demonstrates this path.Related issue
None found — this hardens the E2E harness based on the Playwright-on-Blox root-cause probe.