Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PaparazziShowkaseScreenshotTestWriter(private val environment: XProcessing
rootModulePackageName: String,
testClassName: String
) {
val showkaseScreenshotTestClassName = "${testClassName}_PaparazziShowkaseTest"
val showkaseScreenshotTestClassName = "${testClassName}Impl"
val fileBuilder = getFileBuilder(screenshotTestPackageName, showkaseScreenshotTestClassName)
fileBuilder
.addImport(rootModulePackageName, "getMetadata")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ interface PaparazziShowkaseScreenshotTest {
direction: LayoutDirection,
mode: PaparazziShowkaseUIMode
) {
paparazzi.snapshot(name = testPreview.toString()) {
paparazzi.snapshot(
// No need to pass name here as the Paparazzi instance already uses the
// containing test class name, test function, and function arguments to generate
// a unique screenshot file name.
) {
val lifecycleOwner = LocalLifecycleOwner.current
val configuration = if (mode == PaparazziShowkaseUIMode.DARK) {
Configuration(LocalConfiguration.current).apply {
Expand Down
Loading