From 6f0ee85eec201f637fd31fc3c62b669c75388b0b Mon Sep 17 00:00:00 2001 From: PJ Date: Fri, 14 Aug 2026 13:52:28 +0530 Subject: [PATCH] feat(folio): tag the home total and the card transaction count the total was the only untagged node on the screen, so the spec had to sum cards and a clipped card broke the sum. --- .../kotlin/app/folio/feature/home/HomeScreen.kt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/home/HomeScreen.kt b/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/home/HomeScreen.kt index 29bae99..9fbb5d7 100644 --- a/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/home/HomeScreen.kt +++ b/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/home/HomeScreen.kt @@ -72,7 +72,12 @@ fun HomeScreen(state: HomeUiState, onEvent: (HomeEvent) -> Unit) { Row(verticalAlignment = Alignment.Bottom) { Column { Text("TOTAL BALANCE", style = Type.label, color = t.textMuted) - Text(formatCents(total), style = Type.balance, color = t.text) + Text( + formatCents(total), + style = Type.balance, + color = t.text, + modifier = Modifier.testTag("TotalBalance"), + ) } Box(Modifier.weight(1f)) Text( @@ -153,7 +158,12 @@ private fun AccountCard( overflow = TextOverflow.Ellipsis, modifier = Modifier.testTag("AccountName"), ) - Text(txnLabel, style = Type.caption, color = t.textMuted) + Text( + txnLabel, + style = Type.caption, + color = t.textMuted, + modifier = Modifier.testTag("AccountTxnCount"), + ) } Text( formatCents(balance),