google / google/ground-android

Add unit tests when card is hidden due to current button click

Open
#2,952 0 comments 0 reactions 0 assignees View on GitHub
type: code health
Dominant language
Kotlin
Stars
293
Forks
149
Avg merge
1d 16h
Merged PRs (30d)
42

Description

https://github.com/google/ground-android/blob/559b81589e6fc01bd896a4dc1ac2bd851c008193/ground/src/test/java/com/google/android/ground/ui/datacollection/tasks/location/CaptureLocationTaskFragmentTest.kt#L65-L66

```text

isRequired = false,
)
private val job = Job(id = "job1")
private val lastLocationFlow = MutableSharedFlow(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() {

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.