fix(e2e): harden browser launch on macOS + dismiss overlays mid-checkout (#163 #165) - #166
Merged
Conversation
…out (#163 #165) #163 — add --disable-setuid-sandbox and --no-zygote Chromium flags to prevent zygote/setuid sandbox deadlocks in macOS headless. Wrap chromium.launch() in a JS-level Promise.race with a 35s backstop so the process always throws a catchable error even if Playwright's own pipe-level 30s timeout fails to fire. #165 — add overlay dismissal to go-checkout step 9, which had none. Calls dismissOverlays (4s cap) before the click loop, and dismissBlockingOverlay on each failed navigation attempt before LLM recovery. Mirrors steps 6 and 7. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Jul 29, 2026
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
parity e2ehung indefinitely at "Lançando browser" on macOS (exit 144 = watchdog SIGKILL after 3 min). Added--disable-setuid-sandboxand--no-zygoteChromium flags to prevent zygote/setuid sandbox deadlocks in macOS headless. Also wrappedchromium.launch()in a JS-levelPromise.racewith a 35 s backstop so the process always throws a catchable error even if Playwright's pipe-level 30 s timeout fails to fire.dismissOverlays(4 s cap) before the click loop anddismissBlockingOverlay(structuralelementFromPointcheck) on each failed navigation attempt before LLM recovery — mirrors the pattern already in steps 6 (add-to-cart) and 7 (open-minicart).Test plan
npx tsc --noEmitpasses (verified)parity e2e --url http://localhost:<port> --flows purchase-journeylaunches browser within 30 s on macOS (no hang)🤖 Generated with Claude Code
Summary by cubic
Fixes a macOS headless Chromium launch hang, hardens checkout against popups, and bumps
@decocms/parityto 0.17.6. Addresses #163 and #165.--disable-setuid-sandboxand--no-zygote, keep--no-sandbox/--disable-gpu, and wrapchromium.launch()in a 35sPromise.racewith a clearer timeout.dismissOverlays); if click is blocked, calldismissBlockingOverlayand retry once before LLM recovery.Written for commit 7e2cfdc. Summary will update on new commits.