Skip to content

Commit

Permalink
add a LanguageSettings paparazzi test with the nav drawer open
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Jan 6, 2025
1 parent e9a2d7d commit 3782e80
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import kotlin.test.Test
import kotlinx.collections.immutable.persistentListOf
import org.cru.godtools.model.Language
import org.cru.godtools.ui.BasePaparazziTest
import org.cru.godtools.ui.drawer.DrawerMenuScreenStateTestData
import org.cru.godtools.ui.languages.LanguageSettingsScreen.State
import org.junit.runner.RunWith

Expand All @@ -19,6 +20,7 @@ class LanguageSettingsLayoutPaparazziTest(
@TestParameter accessibilityMode: AccessibilityMode,
) : BasePaparazziTest(deviceConfig = deviceConfig, nightMode = nightMode, accessibilityMode = accessibilityMode) {
private val state = State(
drawerState = DrawerMenuScreenStateTestData.closed,
appLanguage = Locale.FRENCH,
appLanguages = 1234,
downloadedLanguages = persistentListOf(
Expand All @@ -33,4 +35,13 @@ class LanguageSettingsLayoutPaparazziTest(
fun `LanguageSettingsLayout()`() {
snapshot { LanguageSettingsLayout(state) }
}

@Test
fun `LanguageSettingsLayout() - Drawer Open`() {
snapshot {
LanguageSettingsLayout(
state.copy(drawerState = DrawerMenuScreenStateTestData.open)
)
}
}
}

0 comments on commit 3782e80

Please sign in to comment.