Skip to content

Commit 9e7d236

Browse files
committed
Merge branch 'main' into feat/take-partial-screenshots
2 parents 4c082a0 + e957c5e commit 9e7d236

File tree

37 files changed

+536
-95
lines changed

37 files changed

+536
-95
lines changed

.github/workflows/test-e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ jobs:
8888
maestro --help
8989
maestro --version
9090
91-
- name: Set up bartekpacia/scripts (for install_android_sdk script)
91+
- name: Set up mobile-dev-inc/bartek-scripts (for install_android_sdk script)
9292
run: |
93-
git clone https://github.com/bartekpacia/scripts.git $HOME/scripts
93+
git clone https://github.com/mobile-dev-inc/bartek-scripts.git $HOME/scripts
9494
echo "$HOME/scripts/bin" >> $GITHUB_PATH
9595
9696
- name: Set up android-wait-for-emulator script

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
## 1.39.0
6+
7+
Released on 2024-10-15
58

69
Features:
710
- Feature: add `--shard-split` and `--shard-all` options to `maestro test` ([#1955](https://github.com/mobile-dev-inc/maestro/pull/1955) by [Tarek Belkahia](https://github.com/tokou))

e2e/workspaces/wikipedia/android-advanced-flow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ tags:
1010
- runScript: scripts/getSearchQuery.js
1111
- inputText: ${output.result}
1212
- assertVisible: ${output.result}
13+
- runFlow: subflows/launch-clearstate-android.yaml

e2e/workspaces/wikipedia/ios-advanced-flow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ tags:
2020
- eraseText
2121
- inputText: qwerty
2222
- assertVisible: ${output.result}
23+
- runFlow: subflows/launch-clearstate-ios.yaml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
appId: org.wikipedia
2+
---
3+
- launchApp:
4+
clearState: true
5+
- assertVisible: "Continue"
6+
- assertVisible: "Skip"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
appId: org.wikimedia.wikipedia
2+
---
3+
- launchApp:
4+
clearState: true
5+
- assertVisible: "Next"
6+
- assertVisible: "Skip"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ android.useAndroidX=true
22
android.enableJetifier=true
33
kotlin.code.style=official
44
GROUP=dev.mobile
5-
VERSION_NAME=1.38.1
5+
VERSION_NAME=1.39.0
66
POM_DESCRIPTION=Maestro is a server-driven platform-agnostic library that allows to drive tests for both iOS and Android using the same implementation through an intuitive API.
77
POM_URL=https://github.com/mobile-dev-inc/maestro
88
POM_SCM_URL=https://github.com/mobile-dev-inc/maestro

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ junit = "5.10.2"
3636
kotlin = "1.8.22"
3737
kotlinResult = "1.1.18"
3838
ktor = "2.3.6"
39+
mockk = "1.12.0"
3940
mozillaRhino = "1.7.14"
4041
picocli = "4.6.3"
4142
selenium = "4.13.0"
@@ -100,6 +101,7 @@ ktor-server-core = { module = "io.ktor:ktor-server-core", version.ref = "ktor" }
100101
ktor-server-cors = { module = "io.ktor:ktor-server-cors", version.ref = "ktor" }
101102
ktor-server-netty = { module = "io.ktor:ktor-server-netty", version.ref = "ktor" }
102103
ktor-server-status-pages = { module = "io.ktor:ktor-server-status-pages", version.ref = "ktor" }
104+
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
103105
mozilla-rhino = { module = "org.mozilla:rhino", version.ref = "mozillaRhino" }
104106
picocli = { module = "info.picocli:picocli", version.ref = "picocli" }
105107
picocli-codegen = { module = "info.picocli:picocli-codegen", version.ref = "picocli" }

maestro-ai/src/main/java/maestro/ai/DemoApp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fun main(args: Array<String>) = DemoApp().main(args)
5252
class DemoApp : CliktCommand() {
5353
private val inputFiles: List<Path> by argument(help = "screenshots to use").path(mustExist = true).multiple()
5454

55-
private val model: String by option(help = "LLM to use").default("gpt-4o-2024-08-06")
55+
private val model: String by option(help = "LLM to use").default("gpt-4o")
5656

5757
private val showOnlyFails: Boolean by option(help = "Show only failed tests").flag()
5858

maestro-ai/src/main/java/maestro/ai/openai/Client.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private const val API_URL = "https://api.openai.com/v1/chat/completions"
2222
private val logger = LoggerFactory.getLogger(OpenAI::class.java)
2323

2424
class OpenAI(
25-
defaultModel: String = "gpt-4o-2024-08-06",
25+
defaultModel: String = "gpt-4o",
2626
httpClient: HttpClient = defaultHttpClient,
2727
private val apiKey: String,
2828
private val defaultTemperature: Float = 0.2f,

0 commit comments

Comments
 (0)