test: wait for spending confirm after advanced continue - #216
Conversation
The affordability re-check before createOrder made this transition slower than the old 500ms sleep, so Back could pop Advanced before dismiss() and desync the stack. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thanks for picking this up 🙏 — the waits are the right call, and the app-side latency fix landed too, so the original drift is gone (the
bitkit-ios run 33904122187, attempt 3. The recorded video shows the app arriving at the confirm screen ~1s after the tap and sitting there for the remaining 25s of the timeout — so it isn't a timing problem. The screen it lands on has Learn More | Use Defaults, i.e. Reason: // bitkit-ios SpendingConfirm.swift:107-116
if transfer.uiState.isAdvanced { … .accessibilityIdentifier("SpendingConfirmDefault") }
else { … .accessibilityIdentifier("SpendingConfirmAdvanced") }Android does the same thing, so this would fail there too: // bitkit-android SpendingConfirmScreen.kt:266
if (isAdvanced) "SpendingConfirmDefault" else "SpendingConfirmAdvanced"Worth flagging since Android CI is green on this: The fix is one word at line 105, matching what you already have at 182/193/204: await tap('SpendingAdvancedContinue');
-await elementById('SpendingConfirmAdvanced').waitForDisplayed();
+await elementById('SpendingConfirmDefault').waitForDisplayed();
await tap('NavigationBack');Lines 119 and 129 look right as they are — both follow |
|
Yep — Once Confirm is actually up, a single Back still missed Amount on iOS (the old Max catch was covering it). Also waiting for the Advanced screen after Local |
Summary
SpendingAdvancedContinueinstead of a 500ms sleep, matching the amount-screen continue already used later in@transfer_1.createOrderpushed that transition past the old sleep, so Back could pop Advanced beforedismiss()and desync the nav stack (see comment).Test plan
@transfer_1on iOS againstfix/spending-transfer-affordability(bitkit-ios#686)@transfer_1on Android (wait is a no-op when Confirm is already up)Made with Cursor