Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public void setTitleDynamically() throws Exception {
assertExists(By.text("Dynamic Title"));
}

@Test
public void testTopBarHidden() throws Exception {
elementByText("PUSH OPTIONS SCREEN").click();
int topWithNavigation = elementByText("HIDE TOP BAR").getVisibleBounds().top;
elementByText("HIDE TOP BAR").click();
int topWithoutNavigation = elementByText("HIDE TOP BAR").getVisibleBounds().top;
assertThat(topWithoutNavigation).isLessThan(topWithNavigation);
elementByText("SHOW TOP BAR").click();
assertExists(By.text("Static Title"));
}
// @Test
// public void testTopBarHidden() throws Exception {
// elementByText("PUSH OPTIONS SCREEN").click();
// int topWithNavigation = elementByText("HIDE TOP BAR").getVisibleBounds().top;
// elementByText("HIDE TOP BAR").click();
// int topWithoutNavigation = elementByText("HIDE TOP BAR").getVisibleBounds().top;
// assertThat(topWithoutNavigation).isLessThan(topWithNavigation);
// elementByText("SHOW TOP BAR").click();
// assertExists(By.text("Static Title"));
// }
}