Fix how we compute screenshot files.

`AttachmentsPreviewViewPreview` was wrongly converted to `AttachmentsView` instead of `AttachmentsPreviewView`
This commit is contained in:
Benoit Marty 2025-12-17 15:05:11 +01:00
parent 800d06f179
commit 3784ad39b2

View file

@ -83,7 +83,7 @@ private fun Paparazzi.fixScreenshotName(preview: ComposablePreview<AndroidPrevie
.joinToString(".")
val testName = TestName(
packageName = packageName,
className = preview.methodName.replace("Preview", ""),
className = preview.methodName.removeSuffix("Preview"),
methodName = id
)
testNameField.set(this, testName)