|
@@ -4,6 +4,8 @@ import android.support.test.uiautomator.By;
|
4
|
4
|
|
5
|
5
|
import org.junit.Test;
|
6
|
6
|
|
|
7
|
+import static org.assertj.core.api.Java6Assertions.assertThat;
|
|
8
|
+
|
7
|
9
|
public class NavigationOptionsTest extends BaseTest {
|
8
|
10
|
|
9
|
11
|
@Test
|
|
@@ -19,4 +21,15 @@ public class NavigationOptionsTest extends BaseTest {
|
19
|
21
|
elementByText("DYNAMIC OPTIONS").click();
|
20
|
22
|
assertExists(By.text("Dynamic Title"));
|
21
|
23
|
}
|
|
24
|
+
|
|
25
|
+ @Test
|
|
26
|
+ public void testTopBarHidden() throws Exception {
|
|
27
|
+ elementByText("PUSH OPTIONS SCREEN").click();
|
|
28
|
+ int topWithNavigation = elementByText("HIDE TOP BAR").getVisibleBounds().top;
|
|
29
|
+ elementByText("HIDE TOP BAR").click();
|
|
30
|
+ int topWithoutNavigation = elementByText("HIDE TOP BAR").getVisibleBounds().top;
|
|
31
|
+ assertThat(topWithoutNavigation).isLessThan(topWithNavigation);
|
|
32
|
+ elementByText("SHOW TOP BAR").click();
|
|
33
|
+ assertExists(By.text("Static Title"));
|
|
34
|
+ }
|
22
|
35
|
}
|