-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
android app🤖 Related to the Android application🤖 Related to the Android applicationdocumentation📖 Improvements or additions to documentation📖 Improvements or additions to documentationidea💡 Idea to iterate💡 Idea to iterate
Milestone
Description
- Provide a way to stub initial data (predefined, relevant for screenshots) (and reset when relaunch)
- Automate screenshot generation with a UI test navigating the app and taking screenshots when relevant
- Enter demo mode
- Enforce proper Android version and phone layout (currently Pixel 4a)
- Enforce english locale from test? (using
Locale.setDefault(Locale("en"))or Android equivalent?)
Tried 2 solutions, none worked…
⚠ This one also starts the activity twice.
@Before
fun setup() {
val locales = LocaleListCompat.forLanguageTags("fr").toLanguageTags()
AppLocalesStorageHelper.persistLocales(targetContext, locales)
}private fun switchToLocale(locale: Locale) {
Locale.setDefault(locale)
targetContext.resources.apply {
configuration.locale = locale
targetContext.resources.updateConfiguration(configuration, targetContext.resources.displayMetrics)
}
}
@Test
fun fofo() {
switchToLocale(Locale.FRENCH)
}Metadata
Metadata
Assignees
Labels
android app🤖 Related to the Android application🤖 Related to the Android applicationdocumentation📖 Improvements or additions to documentation📖 Improvements or additions to documentationidea💡 Idea to iterate💡 Idea to iterate