Add TestTag to the Recovery key field.
This commit is contained in:
parent
335c0aee33
commit
3543d9398e
4 changed files with 11 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ appId: ${MAESTRO_APP_ID}
|
|||
- tapOn: "Continue"
|
||||
- takeScreenshot: build/maestro/150-Verify
|
||||
- tapOn: "Enter recovery key"
|
||||
- tapOn: "Enter…"
|
||||
- tapOn:
|
||||
id: "verification-recovery_key"
|
||||
- inputText: ${MAESTRO_RECOVERY_KEY}
|
||||
- hideKeyboard
|
||||
- tapOn: "Confirm"
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ dependencies {
|
|||
implementation(projects.libraries.matrixui)
|
||||
implementation(projects.libraries.designsystem)
|
||||
implementation(projects.libraries.uiStrings)
|
||||
implementation(projects.libraries.testtags)
|
||||
api(libs.statemachine)
|
||||
api(projects.features.securebackup.api)
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@ import io.element.android.libraries.designsystem.theme.components.Icon
|
|||
import io.element.android.libraries.designsystem.theme.components.OutlinedTextField
|
||||
import io.element.android.libraries.designsystem.theme.components.Text
|
||||
import io.element.android.libraries.designsystem.theme.components.autofill
|
||||
import io.element.android.libraries.testtags.TestTags
|
||||
import io.element.android.libraries.testtags.testTag
|
||||
import io.element.android.libraries.ui.strings.CommonStrings
|
||||
|
||||
@Composable
|
||||
|
|
@ -169,6 +171,7 @@ private fun RecoveryKeyFormContent(
|
|||
OutlinedTextField(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.recoveryKey)
|
||||
.autofill(
|
||||
autofillTypes = listOf(AutofillType.Password),
|
||||
onFill = { onChange(it) },
|
||||
|
|
|
|||
|
|
@ -33,6 +33,11 @@ object TestTags {
|
|||
val loginPassword = TestTag("login-password")
|
||||
val loginContinue = TestTag("login-continue")
|
||||
|
||||
/**
|
||||
* Verification screen.
|
||||
*/
|
||||
val recoveryKey = TestTag("verification-recovery_key")
|
||||
|
||||
/**
|
||||
* Sign out screen.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue