testtags
This commit is contained in:
parent
ef23d08707
commit
c3b1dbe1c4
10 changed files with 133 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ dependencies {
|
|||
implementation(project(":libraries:matrix"))
|
||||
implementation(project(":libraries:designsystem"))
|
||||
implementation(project(":libraries:elementresources"))
|
||||
implementation(project(":libraries:testtags"))
|
||||
implementation(libs.appyx.core)
|
||||
implementation(project(":libraries:ui-strings"))
|
||||
ksp(libs.showkase.processor)
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ import io.element.android.x.core.compose.textFieldState
|
|||
import io.element.android.x.designsystem.components.VectorIcon
|
||||
import io.element.android.x.features.login.R
|
||||
import io.element.android.x.features.login.error.changeServerError
|
||||
import io.element.android.x.testtags.TestTags
|
||||
import io.element.android.x.testtags.testTag
|
||||
|
||||
@Composable
|
||||
fun ChangeServerView(
|
||||
|
|
@ -129,6 +131,7 @@ fun ChangeServerView(
|
|||
value = homeserverFieldState,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.changeServerServer)
|
||||
.padding(top = 200.dp),
|
||||
onValueChange = {
|
||||
homeserverFieldState = it
|
||||
|
|
@ -162,6 +165,7 @@ fun ChangeServerView(
|
|||
enabled = state.submitEnabled,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.changeServerContinue)
|
||||
.padding(top = 44.dp)
|
||||
) {
|
||||
Text(text = "Continue")
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ import androidx.compose.ui.unit.sp
|
|||
import io.element.android.x.core.compose.textFieldState
|
||||
import io.element.android.x.features.login.error.loginError
|
||||
import io.element.android.x.matrix.core.SessionId
|
||||
import io.element.android.x.testtags.TestTags
|
||||
import io.element.android.x.testtags.testTag
|
||||
import io.element.android.x.ui.strings.R as StringR
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
|
|
@ -127,6 +129,7 @@ fun LoginRootScreen(
|
|||
onClick = onChangeServer,
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterEnd)
|
||||
.testTag(TestTags.loginChangeServer)
|
||||
.padding(top = 8.dp, end = 8.dp),
|
||||
content = {
|
||||
Text(text = "Change")
|
||||
|
|
@ -137,6 +140,7 @@ fun LoginRootScreen(
|
|||
value = loginFieldState,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.loginEmailUsername)
|
||||
.padding(top = 60.dp),
|
||||
label = {
|
||||
Text(text = stringResource(id = StringR.string.login_signin_username_hint))
|
||||
|
|
@ -159,6 +163,7 @@ fun LoginRootScreen(
|
|||
value = passwordFieldState,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.loginPassword)
|
||||
.padding(top = 24.dp),
|
||||
onValueChange = {
|
||||
passwordFieldState = it
|
||||
|
|
@ -202,6 +207,7 @@ fun LoginRootScreen(
|
|||
enabled = state.submitEnabled,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.loginContinue)
|
||||
.padding(vertical = 32.dp)
|
||||
) {
|
||||
Text(text = "Continue")
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ dependencies {
|
|||
implementation(project(":libraries:ui-strings"))
|
||||
implementation(project(":libraries:designsystem"))
|
||||
implementation(project(":libraries:architecture"))
|
||||
implementation(project(":libraries:testtags"))
|
||||
implementation(libs.accompanist.pager)
|
||||
implementation(libs.accompanist.pagerindicator)
|
||||
implementation(libs.appyx.core)
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ import com.google.accompanist.pager.HorizontalPager
|
|||
import com.google.accompanist.pager.HorizontalPagerIndicator
|
||||
import com.google.accompanist.pager.rememberPagerState
|
||||
import io.element.android.x.designsystem.components.VectorButton
|
||||
import io.element.android.x.testtags.TestTags
|
||||
import io.element.android.x.testtags.testTag
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import io.element.android.x.ui.strings.R as StringR
|
||||
|
|
@ -127,6 +129,7 @@ fun OnBoardingScreen(
|
|||
enabled = true,
|
||||
modifier = Modifier
|
||||
.align(CenterHorizontally)
|
||||
.testTag(TestTags.onBoardingSignIn)
|
||||
.padding(top = 16.dp)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue