Skip to content

Commit 10ebd79

Browse files
committed
ok
1 parent 05dc09c commit 10ebd79

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

composeapp/src/main/java/com/firebase/composeapp/MainActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import androidx.compose.material3.Surface
1212
import androidx.compose.runtime.Composable
1313
import androidx.compose.runtime.LaunchedEffect
1414
import androidx.compose.ui.Modifier
15+
import androidx.navigation3.runtime.NavBackStack
1516
import androidx.navigation3.runtime.NavEntry
1617
import androidx.navigation3.runtime.NavKey
1718
import androidx.navigation3.runtime.rememberNavBackStack
@@ -226,7 +227,7 @@ class MainActivity : ComponentActivity() {
226227
@Composable
227228
private fun LaunchMfaEnrollment(
228229
authUI: FirebaseAuthUI,
229-
backStack: androidx.compose.runtime.snapshots.SnapshotStateList<androidx.navigation3.runtime.NavKey>
230+
backStack: NavBackStack
230231
) {
231232
val user = authUI.getCurrentUser()
232233
if (user != null) {

e2eTest/src/test/java/com/firebase/ui/auth/compose/ui/screens/PhoneAuthScreenTest.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,21 @@ class PhoneAuthScreenTest {
257257
.performScrollTo()
258258
.performClick()
259259
composeTestRule.waitForIdle()
260+
261+
// Wait for the verification screen to appear and pump looper (CI timing)
262+
shadowOf(Looper.getMainLooper()).idle()
263+
composeTestRule.waitForIdle()
264+
260265
// Click change phone number
261266
composeTestRule.onNodeWithText(stringProvider.changePhoneNumber)
262267
.performScrollTo()
263268
.performClick()
264269
composeTestRule.waitForIdle()
270+
271+
// Pump looper after navigation
272+
shadowOf(Looper.getMainLooper()).idle()
273+
composeTestRule.waitForIdle()
274+
265275
// Verify we are back to sign in with phone screen
266276
composeTestRule.onNodeWithText(stringProvider.signInWithPhone)
267277
.assertIsDisplayed()

0 commit comments

Comments
 (0)