Fix scaling issues in Roborazzi

pull/1367/head
yongsuk44 1 year ago
parent 8777899920
commit 0ca698b52a

@ -92,6 +92,7 @@ fun <A : ComponentActivity> AndroidComposeTestRule<ActivityScenarioRule<A>, A>.c
fun <A : ComponentActivity> AndroidComposeTestRule<ActivityScenarioRule<A>, A>.captureDialog(
screenshotName: String,
nodeTag: String,
roborazziOptions: RoborazziOptions = DefaultRoborazziOptions,
body: @Composable () -> Unit,
) {
this.activity.setContent {
@ -103,7 +104,10 @@ fun <A : ComponentActivity> AndroidComposeTestRule<ActivityScenarioRule<A>, A>.c
}
this.onNodeWithTag(nodeTag)
.captureRoboImage("src/test/screenshots/$screenshotName.png")
.captureRoboImage(
filePath = "src/test/screenshots/$screenshotName.png",
roborazziOptions = roborazziOptions,
)
}
/**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -53,7 +53,7 @@ protobufPlugin = "0.9.4"
retrofit = "2.9.0"
retrofitKotlinxSerializationJson = "1.0.0"
robolectric = "4.11.1"
roborazzi = "1.11.0"
roborazzi = "1.12.0"
room = "2.6.1"
secrets = "2.0.1"
truth = "1.4.2"

Loading…
Cancel
Save