adding description to test

This commit is contained in:
Rechee
2020-01-08 20:02:38 -08:00
parent 2999e0e5eb
commit e58589cfbd
2 changed files with 6 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ public class HabitsTest extends BaseUserInterfaceTest
verifyShowsScreen(EDIT_HABIT);
typeName("Take a walk");
typeQuestion("Did you take a walk today?");
typeDescription("this is a test description");
clickSave();
verifyShowsScreen(LIST_HABITS);

View File

@@ -58,6 +58,11 @@ public class EditHabitSteps
typeTextWithId(R.id.tvQuestion, name);
}
public static void typeDescription(String description)
{
typeTextWithId(R.id.tvDescription, description);
}
public static void setReminder()
{
onView(withId(R.id.tvReminderTime)).perform(click());