Skip to content

Commit 002cc57

Browse files
authored
Merge pull request #305 from synonymdev/testId-restoreWalletScreen
Add missing word-$index testId
2 parents aa59efb + 7e4131b commit 002cc57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/src/main/java/to/bitkit/ui/onboarding/RestoreWalletScreen.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ fun RestoreWalletView(
203203
},
204204
onPositionChanged = { position ->
205205
inputFieldPositions[index] = position
206-
}
206+
},
207+
index = index,
207208
)
208209
}
209210
}
@@ -246,7 +247,8 @@ fun RestoreWalletView(
246247
},
247248
onPositionChanged = { position ->
248249
inputFieldPositions[index] = position
249-
}
250+
},
251+
index = index,
250252
)
251253
}
252254
}
@@ -415,6 +417,7 @@ fun MnemonicInputField(
415417
onValueChanged: (String) -> Unit,
416418
onFocusChanged: (Boolean) -> Unit,
417419
onPositionChanged: (Int) -> Unit,
420+
index: Int,
418421
) {
419422
OutlinedTextField(
420423
value = value,
@@ -437,6 +440,7 @@ fun MnemonicInputField(
437440
capitalization = KeyboardCapitalization.None,
438441
),
439442
modifier = Modifier
443+
.testTag("Word-$index")
440444
.onFocusChanged { onFocusChanged(it.isFocused) }
441445
.onGloballyPositioned { coordinates ->
442446
val position = coordinates.positionInParent().y.toInt() * 2 // double the scroll to ensure enough space

0 commit comments

Comments
 (0)