Fix maestro test.
This commit is contained in:
parent
4e7750b70a
commit
23cf703925
3 changed files with 12 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ appId: ${APP_ID}
|
||||||
- takeScreenshot: build/maestro/900-SignOutScreen
|
- takeScreenshot: build/maestro/900-SignOutScreen
|
||||||
- back
|
- back
|
||||||
- tapOn: "Sign out"
|
- tapOn: "Sign out"
|
||||||
- tapOn: "Sign out"
|
- tapOn:
|
||||||
|
id: "sign-out-submit"
|
||||||
# Ensure cancel cancels
|
# Ensure cancel cancels
|
||||||
- tapOn: "Cancel"
|
- tapOn: "Cancel"
|
||||||
- tapOn: "Sign out"
|
- 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.designsystem.utils.CommonDrawables
|
||||||
import io.element.android.libraries.matrix.api.encryption.BackupUploadState
|
import io.element.android.libraries.matrix.api.encryption.BackupUploadState
|
||||||
import io.element.android.libraries.matrix.api.encryption.SteadyStateException
|
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.theme.ElementTheme
|
||||||
import io.element.android.libraries.ui.strings.CommonStrings
|
import io.element.android.libraries.ui.strings.CommonStrings
|
||||||
|
|
||||||
|
|
@ -194,7 +196,9 @@ private fun BottomMenu(
|
||||||
text = stringResource(id = signOutSubmitRes),
|
text = stringResource(id = signOutSubmitRes),
|
||||||
showProgress = logoutAction is Async.Loading,
|
showProgress = logoutAction is Async.Loading,
|
||||||
destructive = true,
|
destructive = true,
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
|
.testTag(TestTags.signOut),
|
||||||
onClick = onLogoutClicked,
|
onClick = onLogoutClicked,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,11 @@ object TestTags {
|
||||||
val loginPassword = TestTag("login-password")
|
val loginPassword = TestTag("login-password")
|
||||||
val loginContinue = TestTag("login-continue")
|
val loginContinue = TestTag("login-continue")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sign out screen.
|
||||||
|
*/
|
||||||
|
val signOut = TestTag("sign-out-submit")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change server screen.
|
* Change server screen.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue