feat(folio): testTag identity for AccountName and ledger row cells

Replaces string-heuristic identity in the spec extractors with stable
testTags. AccountCard exposes AccountName; LedgerRow exposes TxnNote
and TxnDate. Spec extractors read those directly instead of filtering
visible text by "starts with $" / "matches digit".
This commit is contained in:
pj committed 2026-04-26 22:19:20 +07:00
1 parent a967e261e5
commit 23bb2a75cc
3 files changed
+13 -13

No files matched your search

@@ -151,6 +151,7 @@ private fun AccountCard(
color = t.text,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier.testTag("AccountName"),
)
Text(txnLabel, style = Type.caption, color = t.textMuted)
}
@@ -163,8 +163,9 @@ private fun TxnRow(type: TxnType, amount: Long, note: String, date: String) {
color = t.text,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier.testTag("TxnNote"),
)
Text(date, style = Type.caption, color = t.textFaint)
Text(date, style = Type.caption, color = t.textFaint, modifier = Modifier.testTag("TxnDate"))
}
Text(
formatCents(signed, signed = true),