ndtp / android-testify

Add screenshots to your Android tests
Other
107 stars 5 forks source link

Font scale configuration for Compose tests #95

Closed ryansama closed 1 year ago

ryansama commented 2 years ago

Is your feature request related to a problem? Please describe. Absolutely love that we can configure font scales by creating our own test activity that implements TestifyResourcesOverride. Would be great to update ComposableTestActivity to implement TestifyResourcesOverride so that font scale or locale can be configured out-of-the-box for Jetpack Compose tests.

This feedback relates to:

Describe the solution you'd like Update ComposableTestActivity to implement TestifyResourcesOverride so that font scale or locale can be configured for Jetpack Compose tests.

Describe alternatives you've considered Alternatively we could update ComposableScreenshotRule to optionally accept a custom activity, much like ScreenshotRule.

Additional context N/A

DanielJette commented 2 years ago

Hi @ryansama. Thanks for the feature request. This is a great idea and I think it should be straightforward to add. I'll add this to our backlog for the 2.0 final release.

DanielJette commented 1 year ago

Fix for this was published in 2.0.0-alpha02