Repository navigation
test: close the sign-in dialog the inAppPurchase suite leaves on screen - #52811
Merged
Merged
Conversation
Without an App Store session StoreKit answers restoreCompletedTransactions() with an Apple Account sign-in dialog, shown by a system agent, and nothing dismisses it, so it stays centred on screen for the rest of the job. Whenever the shard split puts this spec ahead of the screen-capture tests (webview and WebContentsView transparency, border radius) they read the dialog's grey instead of the page and fail. Snapshot the processes that own on-screen windows before the suite and, after it, terminate any system agent that has put up a window since, until the screen is back to what it was.
MarshallOfSound
approved these changes
Aug 14, 2026
|
No Release Notes |
This was referenced Aug 14, 2026
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #52816 |
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #52817 |
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #52818 |
This was referenced Aug 18, 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.
Description of Change
Without an App Store session, StoreKit answers
inAppPurchase.restoreCompletedTransactions()with an Apple Account sign-in dialog shown by a system agent, and nothing dismisses it, so it stays centred on screen for the rest of the job. Wheneverscript/split-tests.jsplacesapi-in-app-purchase-spec.tsahead of the screen-capture tests in a shard, the<webview>/WebContentsViewtransparency and border-radius captures read the dialog's grey (#ececec) instead of the page and fail; any PR that adds enough tests to reshuffle the macOS arm64 split hits it (e.g. #52807, #52808), and the uploadedcolor-mismatch-*.pngartifacts show the sign-in sheet over the capture point. The suite now snapshots the processes that own on-screen windows before it runs and, afterwards, terminates any system agent that has put up a window since, until the screen is back to what it was.Checklist
npm testpassesRelease Notes
Notes: none