Anthony Martin
10/21/2021, 8:28 AMInstrumentationRegistry.getInstrumentation().targetContext
Then calling the resulting context
with getString(R.string.app_name)
returns:
Using Method threw 'android.content.res.Resources$NotFoundException' exception.
It does this in my project along with the default compose template project in Android Studio.
It would be handy if we had resources to test since we can then test multiple languages with UI tests and produce screenshots for this to send to our QA team as part of a release build.
One project is using the latest alpha version, and the other is using the latest stable version.Albert Chang
10/21/2021, 9:25 AMrule.activity.getString()
. If you are creating the rule using createComposeRule()
, change it to createAndroidComposeRule<ComponentActivity>()
.Anthony Martin
10/21/2021, 9:28 AM