Fix the Konsist preview naming for the selection previews

This commit is contained in:
ganfra
2026-10-05 20:48:14 +02:00
parent d4310cb6e9
commit 9b2dcd4b26
3 changed files with 6 additions and 2 deletions
@@ -63,7 +63,7 @@ fun SelectionModeTopBar(
@PreviewsDayNight
@Composable
internal fun SelectionModeTopBarPreview(
@PreviewParameter(SelectionCountProvider::class) count: Int,
@PreviewParameter(SelectionCountPreviewParam::class) count: Int,
) = ElementPreview {
SelectionModeTopBar(
selectedCount = count,
@@ -73,6 +73,6 @@ internal fun SelectionModeTopBarPreview(
)
}
internal class SelectionCountProvider : PreviewParameterProvider<Int> {
internal class SelectionCountPreviewParam : PreviewParameterProvider<Int> {
override val values = sequenceOf(0, 1, 5)
}
@@ -66,6 +66,7 @@ class KonsistClassNameTest {
"EditableAvatarViewUriPreviewParam",
"LoginModeViewErrorPreviewParam",
"OverlapRatioPreviewParam",
"SelectionCountPreviewParam",
"TextFileContentPreviewParam",
"HtmlMessageContentPreviewParam",
)
@@ -110,6 +110,7 @@ class KonsistPreviewTest {
"MessageComposerViewVoicePreview",
"MessagesReactionButtonAddPreview",
"MessagesReactionButtonExtraPreview",
"MessagesViewSelectionModePreview",
"MessagesViewWithIdentityChangePreview",
"PendingMemberRowWithLongNamePreview",
"PinUnlockViewInAppPreview",
@@ -133,6 +134,7 @@ class KonsistPreviewTest {
"SasEmojisPreview",
"SecureBackupSetupViewChangePreview",
"SelectedUserCannotRemovePreview",
"SelectionIndicatorSelectedPreview",
"SpaceMembersViewNoHeroesPreview",
"SyncStateViewServerUnreachablePreview",
"TextComposerAddCaptionPreview",
@@ -179,6 +181,7 @@ class KonsistPreviewTest {
"TimelineItemVoiceViewScanningContentPreview",
"TimelineItemVoiceViewUnifiedPreview",
"TimelineViewMessageShieldPreview",
"TimelineViewSelectionModePreview",
"TimelineViewWithReadMarkerBothIndicatorsPreview",
"TimelineViewWithReadMarkerJumpToUnreadIndicatorOnlyPreview",
"UserAvatarColorsPreview",