Update maestro test regarding the new login flow.
This commit is contained in:
parent
b72172e548
commit
4c214db5c4
7 changed files with 22 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ maestro test \
|
||||||
-e APP_ID=io.element.android.x.debug \
|
-e APP_ID=io.element.android.x.debug \
|
||||||
-e USERNAME=user \
|
-e USERNAME=user \
|
||||||
-e PASSWORD=123 \
|
-e PASSWORD=123 \
|
||||||
-e ROOM_NAME="my room" \
|
-e ROOM_NAME="MyRoom" \
|
||||||
.maestro/allTests.yaml
|
.maestro/allTests.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,15 @@ appId: ${APP_ID}
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "login-change_server"
|
id: "login-change_server"
|
||||||
- takeScreenshot: build/maestro/200-ChangeServer
|
- 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
|
- takeScreenshot: build/maestro/100-SignIn
|
||||||
- runFlow: changeServer.yaml
|
- runFlow: changeServer.yaml
|
||||||
- runFlow: ../assertions/assertLoginDisplayed.yaml
|
- runFlow: ../assertions/assertLoginDisplayed.yaml
|
||||||
|
- tapOn:
|
||||||
|
id: "login-continue"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "login-email_username"
|
id: "login-email_username"
|
||||||
- inputText: ${USERNAME}
|
- inputText: ${USERNAME}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
appId: ${APP_ID}
|
appId: ${APP_ID}
|
||||||
---
|
---
|
||||||
- extendedWaitUntil:
|
- extendedWaitUntil:
|
||||||
visible: "Welcome back!"
|
visible: "Change account provider"
|
||||||
timeout: 10_000
|
timeout: 10_000
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ fun AccountProviderView(
|
||||||
enabled = state.submitEnabled,
|
enabled = state.submitEnabled,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.testTag(TestTags.changeServerContinue)
|
.testTag(TestTags.loginContinue)
|
||||||
)
|
)
|
||||||
TextButton(
|
TextButton(
|
||||||
onClick = {
|
onClick = {
|
||||||
|
|
@ -103,6 +103,7 @@ fun AccountProviderView(
|
||||||
enabled = true,
|
enabled = true,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
.testTag(TestTags.loginChangeServer)
|
||||||
) {
|
) {
|
||||||
Text(text = stringResource(id = R.string.screen_account_provider_change))
|
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.IconButton
|
||||||
import io.element.android.libraries.designsystem.theme.components.OutlinedTextField
|
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.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
|
* https://www.figma.com/file/o9p34zmiuEpZRyvZXJZAYL/FTUE?type=design&node-id=611-61435
|
||||||
|
|
@ -117,7 +119,8 @@ fun ChangeAccountProviderFormView(
|
||||||
// readOnly = isLoading,
|
// readOnly = isLoading,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.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 = {
|
onValueChange = {
|
||||||
userInputState = it
|
userInputState = it
|
||||||
eventSink(ChangeAccountProviderFormEvents.UserInput(it))
|
eventSink(ChangeAccountProviderFormEvents.UserInput(it))
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ object TestTags {
|
||||||
* Change server screen.
|
* Change server screen.
|
||||||
*/
|
*/
|
||||||
val changeServerServer = TestTag("change_server-server")
|
val changeServerServer = TestTag("change_server-server")
|
||||||
val changeServerContinue = TestTag("change_server-continue")
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Room list / Home screen.
|
* Room list / Home screen.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue