mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 01:28:52 -06:00
adding description to test
This commit is contained in:
@@ -92,6 +92,7 @@ public class HabitsTest extends BaseUserInterfaceTest
|
|||||||
verifyShowsScreen(EDIT_HABIT);
|
verifyShowsScreen(EDIT_HABIT);
|
||||||
typeName("Take a walk");
|
typeName("Take a walk");
|
||||||
typeQuestion("Did you take a walk today?");
|
typeQuestion("Did you take a walk today?");
|
||||||
|
typeDescription("this is a test description");
|
||||||
clickSave();
|
clickSave();
|
||||||
|
|
||||||
verifyShowsScreen(LIST_HABITS);
|
verifyShowsScreen(LIST_HABITS);
|
||||||
|
|||||||
@@ -58,6 +58,11 @@ public class EditHabitSteps
|
|||||||
typeTextWithId(R.id.tvQuestion, name);
|
typeTextWithId(R.id.tvQuestion, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void typeDescription(String description)
|
||||||
|
{
|
||||||
|
typeTextWithId(R.id.tvDescription, description);
|
||||||
|
}
|
||||||
|
|
||||||
public static void setReminder()
|
public static void setReminder()
|
||||||
{
|
{
|
||||||
onView(withId(R.id.tvReminderTime)).perform(click());
|
onView(withId(R.id.tvReminderTime)).perform(click());
|
||||||
|
|||||||
Reference in New Issue
Block a user