Skip to content

Commit

Permalink
Use device Pixel 9 with API level 34 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0oked committed Oct 6, 2024
1 parent 4070838 commit 8eb7f93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ android {
testOptions {
managedDevices {
devices {
maybeCreate<com.android.build.api.dsl.ManagedVirtualDevice>("pixel2api31").apply {
device = "Pixel 2"
apiLevel = 31
maybeCreate<com.android.build.api.dsl.ManagedVirtualDevice>("pixel9api34").apply {
device = "Pixel 9"
apiLevel = 34
systemImageSource = "aosp"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ScreengrabTest : AbstractAndroidTest() {
@Test
fun grabScreenshot() {
val screenshotName = InstrumentationRegistry.getArguments()
.getString("screenshotName", " default")
.getString("screenshotName", "default")

Screengrab.setDefaultScreenshotStrategy(UiAutomatorScreenshotStrategy())
Screengrab.screenshot(screenshotName)
Expand Down

0 comments on commit 8eb7f93

Please sign in to comment.