mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Wait after toggling checkmarks
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user