|
@@ -116,7 +116,7 @@ public class BottomTabsControllerTest extends BaseTest {
|
116
|
116
|
public void setTabs_firstChildIsVisibleOtherAreGone() {
|
117
|
117
|
uut.onViewAppeared();
|
118
|
118
|
for (int i = 0; i < uut.getChildControllers().size(); i++) {
|
119
|
|
- assertThat(uut.getView().getChildAt(i).getVisibility()).isEqualTo(i == 0 ? View.VISIBLE : View.GONE);
|
|
119
|
+ assertThat(uut.getView().getChildAt(i).getVisibility()).isEqualTo(i == 0 ? View.VISIBLE : View.INVISIBLE);
|
120
|
120
|
}
|
121
|
121
|
}
|
122
|
122
|
|
|
@@ -128,7 +128,7 @@ public class BottomTabsControllerTest extends BaseTest {
|
128
|
128
|
uut.onTabSelected(3, false);
|
129
|
129
|
|
130
|
130
|
assertThat(uut.getSelectedIndex()).isEqualTo(3);
|
131
|
|
- assertThat(((ViewController) ((List) uut.getChildControllers()).get(0)).getView().getVisibility()).isEqualTo(View.GONE);
|
|
131
|
+ assertThat(((ViewController) ((List) uut.getChildControllers()).get(0)).getView().getVisibility()).isEqualTo(View.INVISIBLE);
|
132
|
132
|
assertThat(((ViewController) ((List) uut.getChildControllers()).get(3)).getView().getVisibility()).isEqualTo(View.VISIBLE);
|
133
|
133
|
verify(eventEmitter, times(1)).emitBottomTabSelected(0, 3);
|
134
|
134
|
}
|