File tree Expand file tree Collapse file tree
auth0/src/test/java/com/auth0/android/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,14 +214,10 @@ public class AuthenticationActivityTest {
214214 MatcherAssert .assertThat(launchAsTwaCaptor.value, Is .`is `(false ))
215215 MatcherAssert .assertThat(activity.deliveredIntent, Is .`is `(Matchers .nullValue()))
216216 activityController.pause().stop()
217- // Browser is shown
217+ // Browser is shown, resume WITHOUT new intent — should NOT deliver or finish
218218 activityController.start().resume()
219- MatcherAssert .assertThat(activity.deliveredIntent, Is .`is `(Matchers .notNullValue()))
220- MatcherAssert .assertThat(
221- activity.deliveredIntent!! .data,
222- Is .`is `(Matchers .nullValue())
223- ) // null data == canceled
224- MatcherAssert .assertThat(activity.isFinishing, Is .`is `(true ))
219+ MatcherAssert .assertThat(activity.deliveredIntent, Is .`is `(Matchers .nullValue())) // nothing delivered
220+ MatcherAssert .assertThat(activity.isFinishing, Is .`is `(false )) // still waiting for result
225221 activityController.destroy()
226222 Mockito .verify(customTabsController).unbindService()
227223 }
You can’t perform that action at this time.
0 commit comments