|
|
@ -120,7 +120,7 @@ public class MainTest
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void testAddHabitAndViewStats()
|
|
|
|
public void testAddHabitAndViewStats() throws InterruptedException
|
|
|
|
{
|
|
|
|
{
|
|
|
|
String name = addHabit(true);
|
|
|
|
String name = addHabit(true);
|
|
|
|
|
|
|
|
|
|
|
@ -128,6 +128,8 @@ public class MainTest
|
|
|
|
.onChildView(withId(R.id.llButtons))
|
|
|
|
.onChildView(withId(R.id.llButtons))
|
|
|
|
.perform(toggleAllCheckmarks());
|
|
|
|
.perform(toggleAllCheckmarks());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thread.sleep(1200);
|
|
|
|
|
|
|
|
|
|
|
|
onData(allOf(is(instanceOf(Habit.class)), withName(name)))
|
|
|
|
onData(allOf(is(instanceOf(Habit.class)), withName(name)))
|
|
|
|
.onChildView(withId(R.id.label))
|
|
|
|
.onChildView(withId(R.id.label))
|
|
|
|
.perform(click());
|
|
|
|
.perform(click());
|
|
|
|