Update maestro test regarding the new login flow.
This commit is contained in:
committed by
Benoit Marty
parent
b72172e548
commit
4c214db5c4
@@ -25,7 +25,7 @@ maestro test \
|
||||
-e APP_ID=io.element.android.x.debug \
|
||||
-e USERNAME=user \
|
||||
-e PASSWORD=123 \
|
||||
-e ROOM_NAME="my room" \
|
||||
-e ROOM_NAME="MyRoom" \
|
||||
.maestro/allTests.yaml
|
||||
```
|
||||
|
||||
|
||||
@@ -3,4 +3,15 @@ appId: ${APP_ID}
|
||||
- tapOn:
|
||||
id: "login-change_server"
|
||||
- takeScreenshot: build/maestro/200-ChangeServer
|
||||
- tapOn: "Continue"
|
||||
- tapOn: "matrix.org"
|
||||
- tapOn:
|
||||
id: "login-change_server"
|
||||
- tapOn: "Other"
|
||||
- tapOn:
|
||||
id: "change_server-server"
|
||||
- inputText: "element"
|
||||
- hideKeyboard
|
||||
- tapOn: "element.io"
|
||||
- tapOn: "Cancel"
|
||||
- back
|
||||
- back
|
||||
|
||||
@@ -5,6 +5,8 @@ appId: ${APP_ID}
|
||||
- takeScreenshot: build/maestro/100-SignIn
|
||||
- runFlow: changeServer.yaml
|
||||
- runFlow: ../assertions/assertLoginDisplayed.yaml
|
||||
- tapOn:
|
||||
id: "login-continue"
|
||||
- tapOn:
|
||||
id: "login-email_username"
|
||||
- inputText: ${USERNAME}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
appId: ${APP_ID}
|
||||
---
|
||||
- extendedWaitUntil:
|
||||
visible: "Welcome back!"
|
||||
visible: "Change account provider"
|
||||
timeout: 10_000
|
||||
|
||||
@@ -94,7 +94,7 @@ fun AccountProviderView(
|
||||
enabled = state.submitEnabled,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.changeServerContinue)
|
||||
.testTag(TestTags.loginContinue)
|
||||
)
|
||||
TextButton(
|
||||
onClick = {
|
||||
@@ -103,6 +103,7 @@ fun AccountProviderView(
|
||||
enabled = true,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.loginChangeServer)
|
||||
) {
|
||||
Text(text = stringResource(id = R.string.screen_account_provider_change))
|
||||
}
|
||||
|
||||
@@ -65,6 +65,8 @@ import io.element.android.libraries.designsystem.theme.components.Icon
|
||||
import io.element.android.libraries.designsystem.theme.components.IconButton
|
||||
import io.element.android.libraries.designsystem.theme.components.OutlinedTextField
|
||||
import io.element.android.libraries.designsystem.theme.components.Text
|
||||
import io.element.android.libraries.testtags.TestTags
|
||||
import io.element.android.libraries.testtags.testTag
|
||||
|
||||
/**
|
||||
* https://www.figma.com/file/o9p34zmiuEpZRyvZXJZAYL/FTUE?type=design&node-id=611-61435
|
||||
@@ -117,7 +119,8 @@ fun ChangeAccountProviderFormView(
|
||||
// readOnly = isLoading,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(start = 16.dp, end = 16.dp, bottom = 30.dp),
|
||||
.padding(start = 16.dp, end = 16.dp, bottom = 30.dp)
|
||||
.testTag(TestTags.changeServerServer),
|
||||
onValueChange = {
|
||||
userInputState = it
|
||||
eventSink(ChangeAccountProviderFormEvents.UserInput(it))
|
||||
|
||||
@@ -37,7 +37,6 @@ object TestTags {
|
||||
* Change server screen.
|
||||
*/
|
||||
val changeServerServer = TestTag("change_server-server")
|
||||
val changeServerContinue = TestTag("change_server-continue")
|
||||
|
||||
/**
|
||||
* Room list / Home screen.
|
||||
|
||||
Reference in New Issue
Block a user