-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 Work in progress - Move tests to Maestro
- Loading branch information
1 parent
2d93045
commit 100be14
Showing
14 changed files
with
173 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
appId: com.escodro.alkaa | ||
env: | ||
CATEGORY_NAME: "Books" | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- tapOn: "Categories" | ||
- tapOn: "Add category" | ||
- inputText: ${CATEGORY_NAME} | ||
- tapOn: "Save" | ||
- assertVisible: ${CATEGORY_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
appId: com.escodro.alkaa | ||
env: | ||
CATEGORY_NAME: "Gifts" | ||
--- | ||
- runFlow: | ||
file: "AddCategory.yaml" | ||
env: | ||
CATEGORY_NAME: ${CATEGORY_NAME} | ||
- tapOn: ${CATEGORY_NAME} | ||
- tapOn: "Remove" | ||
- tapOn: "Remove" | ||
- assertNotVisible: ${CATEGORY_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
appId: com.escodro.alkaa | ||
env: | ||
CATEGORY_NAME: "Movies" | ||
--- | ||
- runFlow: | ||
file: "AddCategory.yaml" | ||
env: | ||
CATEGORY_NAME: ${CATEGORY_NAME} | ||
- tapOn: ${CATEGORY_NAME} | ||
- tapOn: ${CATEGORY_NAME} | ||
- eraseText | ||
- inputText: "Cinema" | ||
- tapOn: "Save" | ||
- assertVisible: "Cinema" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
flows: | ||
- category/* | ||
- home/* | ||
- task/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
appId: com.escodro.alkaa | ||
--- | ||
- launchApp | ||
- assertVisible: | ||
text: "Tasks" | ||
index: 0 | ||
- tapOn: | ||
text: "Search" | ||
- assertVisible: | ||
text: "Search" | ||
index: 0 | ||
- tapOn: | ||
text: "Categories" | ||
- assertVisible: | ||
text: "Categories" | ||
index: 0 | ||
- tapOn: | ||
text: "More" | ||
- assertVisible: | ||
text: "More" | ||
index: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
appId: com.escodro.alkaa | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- tapOn: "Add task" | ||
- inputText: ${TASK_NAME} | ||
- runFlow: | ||
when: | ||
platform: iOS | ||
commands: | ||
- tapOn: "Done" | ||
- tapOn: "Add" | ||
- assertVisible: ${TASK_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
appId: com.escodro.alkaa | ||
env: | ||
TASK_NAME: "Listen to music" | ||
--- | ||
- runFlow: | ||
file: "AddTask.yaml" | ||
env: | ||
TASK_NAME: ${TASK_NAME} | ||
- tapOn: ${TASK_NAME} | ||
- tapOn: "Description" | ||
- inputText: "My description" | ||
- tapOn: "Back" | ||
- tapOn: ${TASK_NAME} | ||
- assertVisible: "My description" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
appId: com.escodro.alkaa | ||
env: | ||
TASK_NAME: "Watter plants" | ||
--- | ||
- runFlow: | ||
file: "AddTask.yaml" | ||
env: | ||
TASK_NAME: ${TASK_NAME} | ||
- tapOn: ${TASK_NAME} | ||
- tapOn: ${TASK_NAME} | ||
- eraseText | ||
- inputText: "Water plants" | ||
- tapOn: "Back" # hide keyboard | ||
- tapOn: "Back" | ||
- assertVisible: "Water plants" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
appId: com.escodro.alkaa | ||
env: | ||
TASK_NAME: "Buy Rachel's gift" | ||
--- | ||
- runFlow: | ||
file: "AddTask.yaml" | ||
env: | ||
TASK_NAME: ${TASK_NAME} | ||
- tapOn: ${TASK_NAME} | ||
- tapOn: "Personal" | ||
- tapOn: "Back" | ||
- tapOn: "Personal" | ||
- assertVisible: ${TASK_NAME} | ||
- tapOn: "Work" | ||
- assertNotVisible: ${TASK_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
package com.escodro.shared | ||
|
||
import androidx.compose.runtime.ExperimentalComposeApi | ||
import androidx.compose.ui.platform.AccessibilityDebugLogger | ||
import androidx.compose.ui.platform.AccessibilitySyncOptions | ||
import androidx.compose.ui.window.ComposeUIViewController | ||
|
||
@OptIn(ExperimentalComposeApi::class) | ||
@Suppress("Unused", "FunctionName") | ||
fun MainViewController() = ComposeUIViewController { AlkaaMultiplatformApp() } | ||
fun MainViewController() = ComposeUIViewController( | ||
configure = { | ||
accessibilitySyncOptions = AccessibilitySyncOptions.Always(AccessibilityDebugLoggerImpl()) | ||
}, | ||
) { | ||
AlkaaMultiplatformApp() | ||
} | ||
|
||
@OptIn(ExperimentalComposeApi::class) | ||
private class AccessibilityDebugLoggerImpl : AccessibilityDebugLogger { | ||
override fun log(message: Any?) { | ||
if (message == null) { | ||
println() | ||
} else { | ||
println(message) | ||
} | ||
} | ||
} |