feat(common): add a basic screenshot test for MonthHeader

This commit is contained in:
Harsh Shandilya 2024-09-02 12:21:14 +05:30
parent ed4c573ee4
commit e317a1f4f3
3 changed files with 25 additions and 0 deletions

1
.gitattributes vendored
View file

@ -3,3 +3,4 @@
**/clawicons/** linguist-generated
android/src/main/baseline-prof.txt linguist-generated -diff
android/src/main/generated/** linguist-generated -diff
**/screenshotTest/**/*.png filter=lfs diff=lfs merge=lfs -text

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d9d4a162b7ba995f625b4feb683879de46ad1c583a37c5cc721030521cece11
size 6633

View file

@ -0,0 +1,21 @@
/*
* Copyright © 2024 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package dev.msfjarvis.claw.common.ui.decorations
import android.annotation.SuppressLint
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import dev.msfjarvis.claw.common.theme.LobstersTheme
@SuppressLint("ComposePreviewPublic", "ComposeUnstableReceiver")
class MonthHeaderTest {
@Preview(showBackground = true)
@Composable
fun DefaultPreview() {
LobstersTheme { MonthHeader(label = "April 2023") }
}
}