From fdebc7529e1584f685ca1298e3df82bf6c6862dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Rayapoull=C3=A9?= Date: Thu, 5 Sep 2024 14:05:20 +0200 Subject: [PATCH] Wrong imports in TagsScreenshot --- .../com/adevinta/spark/tags/TagsScreenshot.kt | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/spark-screenshot-testing/src/test/kotlin/com/adevinta/spark/tags/TagsScreenshot.kt b/spark-screenshot-testing/src/test/kotlin/com/adevinta/spark/tags/TagsScreenshot.kt index 59fa9279a..eb2f71f9f 100644 --- a/spark-screenshot-testing/src/test/kotlin/com/adevinta/spark/tags/TagsScreenshot.kt +++ b/spark-screenshot-testing/src/test/kotlin/com/adevinta/spark/tags/TagsScreenshot.kt @@ -44,14 +44,10 @@ import com.adevinta.spark.icons.FireFill import com.adevinta.spark.icons.SparkIcon import com.adevinta.spark.icons.SparkIcons import com.adevinta.spark.paparazziRule -import com.adevinta.spark.sparkSnapshot +import com.adevinta.spark.sparkSnapshotNightMode import com.adevinta.spark.tags.TagsScreenshot.Style.Filled import com.adevinta.spark.tags.TagsScreenshot.Style.Outlined import com.adevinta.spark.tags.TagsScreenshot.Style.Tinted -import com.adevinta.spark.tokens.darkSparkColors -import com.adevinta.spark.tokens.lightSparkColors - -.Light import com.android.ide.common.rendering.api.SessionParams.RenderingMode.V_SCROLL import org.junit.Rule import org.junit.Test @@ -75,18 +71,12 @@ internal class TagsScreenshot { @Test fun themesTags() { - ThemeVariant.entries.forEach { - paparazzi.sparkSnapshot(name = it.name) { - SparkTheme( - colors = if (it == Light) lightSparkColors() else darkSparkColors(), - ) { - Surface( - color = SparkTheme.colors.backgroundVariant, - modifier = Modifier.fillMaxWidth(), - ) { - Tags() - } - } + paparazzi.sparkSnapshotNightMode { + Surface( + color = SparkTheme.colors.backgroundVariant, + modifier = Modifier.fillMaxWidth(), + ) { + Tags() } } }