fix(folio): do not attribute an effect to an unconfirmed action

submitChangesBalanceByTypedAmount and createdAccountHasNonZeroBalance both
convict by pinning an effect on the last action, so both decline unless the
runner saw it applied. The fixtures now say which fate they mean.
This commit is contained in:
pj committed 2026-08-15 13:41:52 +05:30
1 parent 5b08e09d6f
commit a5066dac27
4 files changed
+128 -51

No files matched your search

+7 -3
View File
@@ -94,7 +94,7 @@ test("the measured android transition chain no longer convicts at delta 0", () =
const step = (
tags: string[],
totalText: string | undefined,
lastAction: { kind: string; on: string } | null,
lastAction: { kind: string; on: string; applied: true } | null,
) => {
const route = routeOfFrame(SCREENS, frame(...tags));
const reading = readHomeTotalBalance({ route, totalText, previousCarrier: carrier });
@@ -104,8 +104,12 @@ test("the measured android transition chain no longer convicts at delta 0", () =
return { route, total: reading.value, submits: window.reported };
};
const back = { kind: "DoubleTap", on: "id:BackButton" };
const phantomSubmit = { kind: "Tap", on: "testTag:AddTransactionScreen > testTag:TxnSubmit" };
const back = { kind: "DoubleTap", on: "id:BackButton", applied: true as const };
const phantomSubmit = {
kind: "Tap",
on: "testTag:AddTransactionScreen > testTag:TxnSubmit",
applied: true as const,
};
const transition = step(["AddTransactionScreen", "HomeScreen"], "$86,911.00", back);
assert.equal(transition.route, null);