Fix maestro test.
This commit is contained in:
@@ -6,7 +6,8 @@ appId: ${APP_ID}
|
||||
- takeScreenshot: build/maestro/900-SignOutScreen
|
||||
- back
|
||||
- tapOn: "Sign out"
|
||||
- tapOn: "Sign out"
|
||||
- tapOn:
|
||||
id: "sign-out-submit"
|
||||
# Ensure cancel cancels
|
||||
- tapOn: "Cancel"
|
||||
- tapOn: "Sign out"
|
||||
|
||||
@@ -46,6 +46,8 @@ import io.element.android.libraries.designsystem.theme.progressIndicatorTrackCol
|
||||
import io.element.android.libraries.designsystem.utils.CommonDrawables
|
||||
import io.element.android.libraries.matrix.api.encryption.BackupUploadState
|
||||
import io.element.android.libraries.matrix.api.encryption.SteadyStateException
|
||||
import io.element.android.libraries.testtags.TestTags
|
||||
import io.element.android.libraries.testtags.testTag
|
||||
import io.element.android.libraries.theme.ElementTheme
|
||||
import io.element.android.libraries.ui.strings.CommonStrings
|
||||
|
||||
@@ -194,7 +196,9 @@ private fun BottomMenu(
|
||||
text = stringResource(id = signOutSubmitRes),
|
||||
showProgress = logoutAction is Async.Loading,
|
||||
destructive = true,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.signOut),
|
||||
onClick = onLogoutClicked,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -33,6 +33,11 @@ object TestTags {
|
||||
val loginPassword = TestTag("login-password")
|
||||
val loginContinue = TestTag("login-continue")
|
||||
|
||||
/**
|
||||
* Sign out screen.
|
||||
*/
|
||||
val signOut = TestTag("sign-out-submit")
|
||||
|
||||
/**
|
||||
* Change server screen.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user