@@ -105,10 +105,14 @@ class AccessibilityTest {
105105 @Test
106106 fun countrySelector_hasDropdownRole () {
107107 composeTestRule.setContent {
108- CountrySelector (
109- selectedCountry = CountryUtils .getDefaultCountry(),
110- onCountrySelected = {}
111- )
108+ androidx.compose.runtime.CompositionLocalProvider (
109+ com.firebase.ui.auth.compose.configuration.string_provider.LocalAuthUIStringProvider provides stringProvider
110+ ) {
111+ CountrySelector (
112+ selectedCountry = CountryUtils .getDefaultCountry(),
113+ onCountrySelected = {}
114+ )
115+ }
112116 }
113117
114118 // Verify country selector has content description and dropdown role
@@ -173,18 +177,22 @@ class AccessibilityTest {
173177 }
174178
175179 composeTestRule.setContent {
176- SignInUI (
177- configuration = configuration,
178- isLoading = false ,
179- emailSignInLinkSent = false ,
180- email = " " ,
181- password = " " ,
182- onEmailChange = {},
183- onPasswordChange = {},
184- onSignInClick = {},
185- onGoToSignUp = {},
186- onGoToResetPassword = {}
187- )
180+ androidx.compose.runtime.CompositionLocalProvider (
181+ com.firebase.ui.auth.compose.configuration.string_provider.LocalAuthUIStringProvider provides stringProvider
182+ ) {
183+ SignInUI (
184+ configuration = configuration,
185+ isLoading = false ,
186+ emailSignInLinkSent = false ,
187+ email = " " ,
188+ password = " " ,
189+ onEmailChange = {},
190+ onPasswordChange = {},
191+ onSignInClick = {},
192+ onGoToSignUp = {},
193+ onGoToResetPassword = {}
194+ )
195+ }
188196 }
189197
190198 // Verify screen title has heading semantic
@@ -212,15 +220,19 @@ class AccessibilityTest {
212220 }
213221
214222 composeTestRule.setContent {
215- EnterPhoneNumberUI (
216- configuration = configuration,
217- isLoading = false ,
218- phoneNumber = " " ,
219- selectedCountry = CountryUtils .getDefaultCountry(),
220- onPhoneNumberChange = {},
221- onCountrySelected = {},
222- onSendCodeClick = {}
223- )
223+ androidx.compose.runtime.CompositionLocalProvider (
224+ com.firebase.ui.auth.compose.configuration.string_provider.LocalAuthUIStringProvider provides stringProvider
225+ ) {
226+ EnterPhoneNumberUI (
227+ configuration = configuration,
228+ isLoading = false ,
229+ phoneNumber = " " ,
230+ selectedCountry = CountryUtils .getDefaultCountry(),
231+ onPhoneNumberChange = {},
232+ onCountrySelected = {},
233+ onSendCodeClick = {}
234+ )
235+ }
224236 }
225237
226238 // Verify phone number field exists and screen is displayed
@@ -255,7 +267,8 @@ class AccessibilityTest {
255267 composeTestRule.setContent {
256268 // Force RTL layout direction
257269 androidx.compose.runtime.CompositionLocalProvider (
258- androidx.compose.ui.platform.LocalLayoutDirection provides androidx.compose.ui.unit.LayoutDirection .Rtl
270+ androidx.compose.ui.platform.LocalLayoutDirection provides androidx.compose.ui.unit.LayoutDirection .Rtl ,
271+ com.firebase.ui.auth.compose.configuration.string_provider.LocalAuthUIStringProvider provides stringProvider
259272 ) {
260273 SignInUI (
261274 configuration = configuration,
0 commit comments