From 61ae3d1ed4f114d96ab71edcdf46d650d72b21e5 Mon Sep 17 00:00:00 2001 From: Patrick Michalik <120058021+patrickmichalik@users.noreply.github.com> Date: Wed, 29 May 2024 15:32:17 +0200 Subject: [PATCH] Update Paparazzi setup and reference images --- .../com/patrykandpatrick/vico/sample/PaparazziTest.kt | 9 ++++++++- ...azziTest_Test default charts in NIGHT_columnchart.png | 4 ++-- ...t charts in NIGHT_columnchart_long_not_scrollable.png | 4 ++-- ...fault charts in NIGHT_columnchart_long_scrollable.png | 4 ++-- ...lumnchart_long_scrollable_with_initial_scroll_end.png | 4 ++-- ...arazziTest_Test default charts in NIGHT_linechart.png | 4 ++-- ...ult charts in NIGHT_linechart_long_not_scrollable.png | 4 ++-- ...default charts in NIGHT_linechart_long_scrollable.png | 4 ++-- ...linechart_long_scrollable_with_initial_scroll_end.png | 4 ++-- ...Test_Test default charts in NOT NIGHT_columnchart.png | 4 ++-- ...arts in NOT NIGHT_columnchart_long_not_scrollable.png | 4 ++-- ...t charts in NOT NIGHT_columnchart_long_scrollable.png | 4 ++-- ...lumnchart_long_scrollable_with_initial_scroll_end.png | 4 ++-- ...ziTest_Test default charts in NOT NIGHT_linechart.png | 4 ++-- ...charts in NOT NIGHT_linechart_long_not_scrollable.png | 4 ++-- ...ult charts in NOT NIGHT_linechart_long_scrollable.png | 4 ++-- ...linechart_long_scrollable_with_initial_scroll_end.png | 4 ++-- 17 files changed, 40 insertions(+), 33 deletions(-) diff --git a/sample/src/test/kotlin/com/patrykandpatrick/vico/sample/PaparazziTest.kt b/sample/src/test/kotlin/com/patrykandpatrick/vico/sample/PaparazziTest.kt index f43df95bc..020e7e474 100644 --- a/sample/src/test/kotlin/com/patrykandpatrick/vico/sample/PaparazziTest.kt +++ b/sample/src/test/kotlin/com/patrykandpatrick/vico/sample/PaparazziTest.kt @@ -18,6 +18,7 @@ package com.patrykandpatrick.vico.sample import androidx.compose.runtime.Composable import app.cash.paparazzi.Paparazzi +import com.android.ide.common.rendering.api.SessionParams import com.patrykandpatrick.vico.sample.paparazzi.lightConfig import com.patrykandpatrick.vico.sample.paparazzi.nightConfig import com.patrykandpatrick.vico.sample.previews.composables.column.DefaultColumnChart @@ -50,7 +51,13 @@ public class PaparazziTest { "ColumnChart Long Not Scrollable" to { DefaultColumnChartLongNonScrollable() }, ) - @get:Rule public val paparazzi: Paparazzi = Paparazzi(deviceConfig = lightConfig) + @get:Rule + public val paparazzi: Paparazzi = + Paparazzi( + deviceConfig = lightConfig, + renderingMode = SessionParams.RenderingMode.SHRINK, + maxPercentDifference = .2, + ) private fun List Unit>>.snapshotAll() { forEach { (name, composable) -> paparazzi.snapshot(name) { composable() } } diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart.png index 4069443da..d7fe6abef 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2f96866cb52f2b2a998fbf2ac901fbb2d6374202fe44184e45e9177ff9730c07 -size 69590 +oid sha256:5b245060fe704c8bdd6e76373e72a184bde9a51548bf0d201052da4b8ea7f87f +size 12996 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_not_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_not_scrollable.png index 374de0ff6..bfa332b71 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_not_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_not_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0d061d0f9d499f177a1308125735d09ba2222da8e4c71366c4bfb25fab0535f1 -size 75857 +oid sha256:5832637d14a5b58c71cafa6649d9a4094a0e9b029f57b30ac6d74523636467d9 +size 14315 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable.png index 374de0ff6..0afc86090 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0d061d0f9d499f177a1308125735d09ba2222da8e4c71366c4bfb25fab0535f1 -size 75857 +oid sha256:061a58c500cfa517536578f53ebdb853e4e653f4eff3d6fc0f4afa2f74a5d932 +size 13974 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png index 374de0ff6..a58158316 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0d061d0f9d499f177a1308125735d09ba2222da8e4c71366c4bfb25fab0535f1 -size 75857 +oid sha256:4551137f3f524c95009e64a553998994a323ec72df11ca274022d86f114e5ef2 +size 14256 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart.png index 4f85cbc95..7033d8c2a 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1c07ec599fd9a7a669583db0f6fe8321bc08014d108ed784e2fd96c7f9c72130 -size 91631 +oid sha256:875dcb29ba9b28fce6b8ade4c889f3b3e4485160519b4c5b98c1611e23dd791d +size 21043 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_not_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_not_scrollable.png index 7b423daef..d30a6c14d 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_not_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_not_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:218376de53c6fc0a44b2ea734f585bb8f0ec5dc650c33a76ab4cb6c8e0260bff -size 122743 +oid sha256:9d3448bab165c067b12c7037347e102f09091845483ae336cd944ee52b69d1c4 +size 29334 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable.png index 7b423daef..8b004ae21 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:218376de53c6fc0a44b2ea734f585bb8f0ec5dc650c33a76ab4cb6c8e0260bff -size 122743 +oid sha256:dff3d13d62ba4ddb76d2a8c411792affd5eb86c0fef3c1c719175b7798600e9b +size 29597 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable_with_initial_scroll_end.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable_with_initial_scroll_end.png index 7b423daef..706f7bf30 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable_with_initial_scroll_end.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NIGHT_linechart_long_scrollable_with_initial_scroll_end.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:218376de53c6fc0a44b2ea734f585bb8f0ec5dc650c33a76ab4cb6c8e0260bff -size 122743 +oid sha256:e25ece745b961c1b5310990f54e989676bd2b367d3ff2ca9b7da6bb51a58ce0c +size 29675 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart.png index 821e1aa8b..5ff736133 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:080c0eb596f76f8813dc018087f8deed9f4781d30dcbf928808f33f4025af22c -size 68799 +oid sha256:2e131d25f1abd8047d92dd6577f7a6aec210cf85799077d229e38796bee8f2d2 +size 12963 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_not_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_not_scrollable.png index 8ba5ff1a9..9af65cb3c 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_not_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_not_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:858cd653b02e74801f86ec031d54c3204c156d14b1fec05f5de6c963afd57976 -size 76443 +oid sha256:72126acdf5357ed4c78f13ac272d0d1139d157df0c232de9879965b2714c2755 +size 14372 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable.png index 8ba5ff1a9..76bb24aa9 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:858cd653b02e74801f86ec031d54c3204c156d14b1fec05f5de6c963afd57976 -size 76443 +oid sha256:eb2ee633e85ad34a9329df5d93a69d851c2140e4baba8a79b5b9dedcf9971f2b +size 14047 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png index 8ba5ff1a9..1c97c5116 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_columnchart_long_scrollable_with_initial_scroll_end.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:858cd653b02e74801f86ec031d54c3204c156d14b1fec05f5de6c963afd57976 -size 76443 +oid sha256:3e74cd55976872df9f23a1fb026f8babc1134020eeea7775f6519f26d663763a +size 14375 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart.png index 3760106b5..dd4e6c97f 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:979812857b868a0bcf0fd62a379aa01d7524f7d2e90deaaaa0a75de4d4f88148 -size 89810 +oid sha256:f7e55543e005c48d7bbe72ed8ffabf79c10327a4fa45d71773174785c59ef63c +size 20415 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_not_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_not_scrollable.png index eef61b2b7..a50506134 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_not_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_not_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b1e3b82703a73f07c33a539c9976f886b9ddba98db092e813ef1a5221b0af90 -size 119874 +oid sha256:9b221f4dc27146835528c00bc6ca3bd7e8dca74f6d8101b1f48c20a8f285c405 +size 28252 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable.png index eef61b2b7..90ec92082 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b1e3b82703a73f07c33a539c9976f886b9ddba98db092e813ef1a5221b0af90 -size 119874 +oid sha256:10f8dcf8bba82df069d11886ae0a682c74dad562a8de3bfcf3d5a73990391fdf +size 28527 diff --git a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable_with_initial_scroll_end.png b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable_with_initial_scroll_end.png index eef61b2b7..18e0e6498 100644 --- a/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable_with_initial_scroll_end.png +++ b/sample/src/test/snapshots/images/com.patrykandpatrick.vico.sample_PaparazziTest_Test default charts in NOT NIGHT_linechart_long_scrollable_with_initial_scroll_end.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b1e3b82703a73f07c33a539c9976f886b9ddba98db092e813ef1a5221b0af90 -size 119874 +oid sha256:936429772cf9236f7d8f524176d978f7584510b52184a2374564458381f0bdd4 +size 28609