Skip to content

Commit

Permalink
Keep stacked previews separate
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-e committed Sep 28, 2023
1 parent 2e60ebd commit 61d4dcd
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ fun TextRowWithIcon(
}

@Preview
@SnapshotTestingPreview
@LocalePreviews
@FontScalePreviews
@Composable
fun TextRowWithIconPreviewFromMain() {
TextRowWithIcon(
Expand All @@ -34,15 +35,25 @@ fun TextRowWithIconPreviewFromMain() {
)
}

@SnapshotTestingPreview
@LocalePreviews
@FontScalePreviews
@Composable
fun TextRowWithIconPreviewFromMainJustMultiPreview() {
fun TextRowWithIconPreviewFromMainJustStackedMultiPreview() {
TextRowWithIcon(
titleText = "Title",
subtitleText = "Subtitle"
)
}

@SnapshotTestingPreview
@Composable
fun TextRowWithIconPreviewFromMainJustSnapshotTestingPreview() {
TextRowWithIcon(
titleText = "Title SnapshotTestingPreview",
subtitleText = "Subtitle SnapshotTestingPreview"
)
}

// Should not be snapshotted as this is marked to be ignored
@Preview
@IgnoreEmergeSnapshot
Expand Down

0 comments on commit 61d4dcd

Please sign in to comment.