Esempio n. 1
0
        public void TappingTheContinueButtonOnATimeEntryContinuesTheTimeEntry()
        {
            var timeEntryDescription = "This is a time entry";

            app.CreateTimeEntry(timeEntryDescription);
            Func <AppQuery, AppQuery> queryForContinueButton
                = x => x.Marked(Main.TimeEntryRow)
                  .Descendant()
                  .Text(timeEntryDescription)
                  .Parent()
                  .Marked(Main.TimeEntryRow)
                  .Descendant()
                  .Marked(Main.TimeEntryRowContinueButton);

            app.Tap(queryForContinueButton);

            app.AssertRunningTimeEntry(timeEntryDescription);
        }