ground-android
ground-android copied to clipboard
Add unit tests when card is hidden due to current button click
https://github.com/google/ground-android/blob/559b81589e6fc01bd896a4dc1ac2bd851c008193/ground/src/test/java/com/google/android/ground/ui/datacollection/tasks/location/CaptureLocationTaskFragmentTest.kt#L65-L66
isRequired = false,
)
private val job = Job(id = "job1")
private val lastLocationFlow = MutableSharedFlow<Location>(replay = 1)
override fun setUp() {
super.setUp()
// TODO: Add unit tests when card is hidden due to current button click
// Issue URL: https://github.com/google/ground-android/issues/2952
mapStateRepository.isLocationLockEnabled = true
whenever(locationManager.locationUpdates).thenReturn(lastLocationFlow)
}
@Test
fun testHeader() {