Skip to content

fix: best-effort dismiss of Background Payments intro sheet - #234

Open
piotr-iohk wants to merge 2 commits into
mainfrom
fix/1177-electrum-error-toasts
Open

piotr-iohk wants to merge 2 commits into
mainfrom
fix/1177-electrum-error-toasts

Conversation

@piotr-iohk

@piotr-iohk piotr-iohk commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

TL;DR

Rebased onto latest main after #233 (settings toast soft-wait) and #235 (iOS Background Payments dismiss) landed. The only remaining unique change is softening dismissBackgroundPaymentsTimedSheet so a missing/auto-dismissed intro sheet does not fail the Android send shard.

Companion app branch: fix/1177-electrum-error-toasts (bitkit-android#1287).

Why

Android product PR synonymdev/bitkit-android#1287 failed only on e2e-tests-local - send:

https://github.com/synonymdev/bitkit-android/actions/runs/35343510496

dismissBackgroundPaymentsTimedSheet hard-waited on BackgroundPaymentsIntro-later and timed out 3/3 (@send_2, 30s). Other local shards were green. E2E_BRANCH resolved to main.

Change

Same helper as clean #241. Soften dismissBackgroundPaymentsTimedSheet to a waitForToastBestEffort-style poll:

  • If the intro is shown, still tap Later / Cancel so remaining coverage runs on an unobstructed home.
  • If the sheet is missing or auto-dismissed, log and continue instead of failing the spec.
  • Use triggerTimedSheetUnlessPresent so we do not HeaderMenu-trigger over an already-visible sheet.

Conflict resolution: took this PR’s best-effort poll and dropped main’s leftover hard-wait body from #235. Did not re-apply settings toast soft-wait (already on main via #233).

Test plan

  • eslint + tsc --noEmit on test/helpers/actions.ts
  • Re-run Android e2e-tests-local - send on android#1287 after this rebase (no emulator in this environment)
Open in Web Open in Cursor 

Hard-waiting on BackgroundPaymentsIntro-later flakes the Android send shard when the timed sheet is already gone or auto-dismissed. Poll like waitForToastBestEffort and still dismiss Later/Cancel when the intro is shown.

Co-authored-by: piotr-iohk <piotr-iohk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants