Skip to content

Commit

Permalink
Update screenshot specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdavies committed Dec 15, 2024
1 parent c0c856d commit 4abce5d
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 15 deletions.
1 change: 1 addition & 0 deletions conferences-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ android {
}

dependencies {
screenshotTestImplementation(compose.components.resources)
screenshotTestImplementation(compose.material3)
screenshotTestImplementation(compose.uiTooling)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.jetbrains.compose.resources.StringResource
import org.jetbrains.compose.resources.stringResource

@Composable
@ExperimentalMaterial3Api
@OptIn(ExperimentalMaterial3Api::class)
internal fun EventsTopBar(
title: StringResource,
actions: @Composable RowScope.() -> Unit,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
package io.ashdavies.party.home
package io.ashdavies.party.events

import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import io.ashdavies.identity.IdentityState
import io.ashdavies.party.profile.ProfileActionButton
import io.ashdavies.party.tooling.MaterialPreviewTheme
import io.ashdavies.party.tooling.PreviewDayNight
import playground.conferences_app.generated.resources.Res
import playground.conferences_app.generated.resources.upcoming_events

internal class HomeScreenTests {
internal class EventsTopBarTests {

@Composable
@PreviewDayNight
@OptIn(ExperimentalMaterial3Api::class)
private fun HomeTopAppBarPreview() {
private fun EventsTopBarPreview() {
MaterialPreviewTheme {
HomeTopBar(
EventsTopBar(
title = Res.string.upcoming_events,
actions = {
ProfileActionButton(
identityState = IdentityState.Unauthenticated,
Expand All @@ -24,12 +25,4 @@ internal class HomeScreenTests {
)
}
}

@Composable
@PreviewDayNight
private fun HomeBottomSheetPreview() {
MaterialPreviewTheme {
HomeBottomBar()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package io.ashdavies.party.home

import androidx.compose.runtime.Composable
import io.ashdavies.party.tooling.MaterialPreviewTheme
import io.ashdavies.party.tooling.PreviewDayNight

internal class HomeBottomBarTest {

@Composable
@PreviewDayNight
private fun HomeBottomSheetPreview() {
MaterialPreviewTheme {
HomeBottomBar()
}
}
}

0 comments on commit 4abce5d

Please sign in to comment.