Fix tests

This commit is contained in:
Yuri Schimke 2021-10-29 18:22:12 +03:00
parent 72b93622c8
commit 33854565ef

View file

@ -1,6 +1,5 @@
package com.surrus.peopleinspace.wear
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.test.assertContentDescriptionEquals
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
@ -8,10 +7,8 @@ import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.onParent
import com.surrus.common.remote.Assignment
import com.surrus.peopleinspace.LocalRotaryEventDispatcher
import com.surrus.peopleinspace.PersonListScreen
import com.surrus.peopleinspace.PersonListTag
import com.surrus.peopleinspace.RotaryEventDispatcher
import org.junit.Rule
import org.junit.Test
@ -35,7 +32,7 @@ class PeopleInSpaceTest {
@Test
fun testPeopleListScreenEmpty() {
composeTestRule.setContent {
PersonListScreen(personSelected = {}, people = listOf())
PersonListScreen(personSelected = {}, issMapClick = {}, people = listOf())
}
composeTestRule.onNodeWithText("No people in space!")
@ -45,7 +42,7 @@ class PeopleInSpaceTest {
@Test
fun testPeopleListScreen() {
composeTestRule.setContent {
PersonListScreen(personSelected = {}, people = peopleList)
PersonListScreen(personSelected = {}, issMapClick = {}, people = peopleList)
}
val personListNode = composeTestRule.onNodeWithTag(PersonListTag)