Fix tests
This commit is contained in:
parent
72b93622c8
commit
33854565ef
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue