Skip to content

test: close the sign-in dialog the inAppPurchase suite leaves on screen - #52811

Merged
codebytere merged 1 commit into
mainfrom
test-iap-dismiss-signin-dialog
Aug 14, 2026
Merged

codebytere merged 1 commit into
mainfrom
test-iap-dismiss-signin-dialog

Conversation

@codebytere

Copy link
Copy Markdown
Member

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. Whenever script/split-tests.js places api-in-app-purchase-spec.ts ahead of the screen-capture tests in a shard, the <webview> / WebContentsView transparency 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 uploaded color-mismatch-*.png artifacts 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

  • PR description included and stakeholders cc'd
  • npm test passes
  • tests are changed or added

Release Notes

Notes: none

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.
@codebytere codebytere added target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 14, 2026
@codebytere
codebytere merged commit 22035ac into main Aug 14, 2026
100 checks passed
@codebytere
codebytere deleted the test-iap-dismiss-signin-dialog branch August 14, 2026 13:52
@release-clerk

release-clerk Bot commented Aug 14, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #52816

@trop trop Bot removed the target/43-x-y PR should also be added to the "43-x-y" branch. label Aug 14, 2026
@trop

trop Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #52817

@trop

trop Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #52818

@trop trop Bot added in-flight/42-x-y in-flight/44-x-y merged/43-x-y PR was merged to the "43-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. in-flight/43-x-y in-flight/42-x-y in-flight/44-x-y labels Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants