Fix test by making the whole ListItem clickable.

Also improve height of View to let the test see the View.
This commit is contained in:
Benoit Marty 2024-05-27 13:51:18 +02:00
parent 8bf241b593
commit b30076ecca
3 changed files with 4 additions and 3 deletions

View file

@ -82,6 +82,7 @@ class DeveloperSettingsViewTest {
}
}
@Config(qualifiers = "h1024dp")
@Test
fun `clicking on configure tracing invokes the expected callback`() {
val eventsRecorder = EventsRecorder<DeveloperSettingsEvents>(expectEvents = false)
@ -96,7 +97,7 @@ class DeveloperSettingsViewTest {
}
}
@Config(qualifiers = "h1024dp")
@Config(qualifiers = "h1500dp")
@Test
fun `clicking on clear cache emits the expected event`() {
val eventsRecorder = EventsRecorder<DeveloperSettingsEvents>()