mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
feat(common): add a basic screenshot test for MonthHeader
This commit is contained in:
parent
ed4c573ee4
commit
e317a1f4f3
3 changed files with 25 additions and 0 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -3,3 +3,4 @@
|
||||||
**/clawicons/** linguist-generated
|
**/clawicons/** linguist-generated
|
||||||
android/src/main/baseline-prof.txt linguist-generated -diff
|
android/src/main/baseline-prof.txt linguist-generated -diff
|
||||||
android/src/main/generated/** linguist-generated -diff
|
android/src/main/generated/** linguist-generated -diff
|
||||||
|
**/screenshotTest/**/*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9d9d4a162b7ba995f625b4feb683879de46ad1c583a37c5cc721030521cece11
|
||||||
|
size 6633
|
|
@ -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") }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue