Fix problems in SingleLineCollapsedLabelGroupViewTest.kt

MAILAND-2623
This commit is contained in:
Davide Farella 2021-11-29 08:00:12 +01:00 committed by Zorica Stojchevska
parent e9c9b79b56
commit f6818847cd
1 changed files with 6 additions and 2 deletions

View File

@ -47,14 +47,18 @@ class SingleLineCollapsedLabelGroupViewTest :
@Test
fun whenTheLabelsListEmptyShouldHideTheView() {
testView.setLabels(emptyList())
runOnActivityThread {
testView.setLabels(emptyList())
}
onTestView().check(isGone())
}
@Test
fun whenHasLabelsShouldShowTheView() {
testView.setLabels(LabelList.withThreeItems)
runOnActivityThread {
testView.setLabels(LabelList.withThreeItems)
}
onTestView().check(isVisible())
}