Skip to content

Commit 2dff691

Browse files
committed
Rebase tweaks
1 parent a2aab8e commit 2dff691

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

maestro-client/src/main/java/maestro/drivers/IOSDriver.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ class IOSDriver(
432432
}
433433

434434
override fun setOrientation(orientation: DeviceOrientation) {
435-
runDeviceCall {
436-
iosDevice.setOrientation(orientation.camelCaseName)
435+
metrics.measured("operation", mapOf("command" to "setOrientation")) {
436+
runDeviceCall("setOrientation") { iosDevice.setOrientation(orientation.camelCaseName) }
437437
}
438438
}
439439

maestro-orchestra/src/main/java/maestro/orchestra/yaml/YamlFluentCommand.kt

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import maestro.orchestra.ScrollCommand
5757
import maestro.orchestra.ScrollUntilVisibleCommand
5858
import maestro.orchestra.SetAirplaneModeCommand
5959
import maestro.orchestra.SetLocationCommand
60+
import maestro.orchestra.SetOrientationCommand
6061
import maestro.orchestra.StartRecordingCommand
6162
import maestro.orchestra.StopAppCommand
6263
import maestro.orchestra.StopRecordingCommand

0 commit comments

Comments
 (0)