Skip to content

Commit

Permalink
Intentionally fail a unit test for github action validation
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 committed Aug 19, 2024
1 parent e7aad8a commit 7a36b9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import com.google.android.ground.shouldHaveTextAtPosition
import com.google.android.ground.ui.map.MapType
import com.google.common.truth.Truth.assertThat
import dagger.hilt.android.testing.HiltAndroidTest
import javax.inject.Inject
import org.hamcrest.Matchers.allOf
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import javax.inject.Inject

@HiltAndroidTest
@RunWith(RobolectricTestRunner::class)
Expand All @@ -60,7 +60,7 @@ class MapTypeDialogFragmentTest : BaseHiltTest() {
onView(withText("Base map")).check(matches(isDisplayed()))
onView(withId(R.id.recycler_view)).check(matches(allOf(isDisplayed(), hasChildCount(3))))
with(R.id.recycler_view) {
shouldHaveTextAtPosition("Road map", 0)
shouldHaveTextAtPosition("Road map 2", 0)
shouldHaveTextAtPosition("Terrain", 1)
shouldHaveTextAtPosition("Satellite", 2)
}
Expand Down

0 comments on commit 7a36b9c

Please sign in to comment.