Skip to content

Commit c323734

Browse files
test: add coverage for single non-email provider start route
1 parent b7d8e1f commit c323734

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

auth/src/test/java/com/firebase/ui/auth/ui/screens/FirebaseAuthScreenRouteTest.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ class FirebaseAuthScreenRouteTest {
5757
assertThat(getStartRoute(configuration)).isEqualTo(AuthRoute.Phone)
5858
}
5959

60+
@Test
61+
fun `single google provider starts at method picker`() {
62+
val configuration = authUIConfiguration {
63+
context = applicationContext
64+
providers {
65+
provider(
66+
AuthProvider.Google(
67+
scopes = emptyList(),
68+
serverClientId = "test-client-id"
69+
)
70+
)
71+
}
72+
}
73+
74+
assertThat(getStartRoute(configuration)).isEqualTo(AuthRoute.MethodPicker)
75+
}
76+
6077
@Test
6178
fun `single email provider shows picker when always shown is enabled`() {
6279
val configuration = authUIConfiguration {

0 commit comments

Comments
 (0)