Exemplo n.º 1
0
        public void RemovingProjectFromATimeEntry()
        {
            var description = "Doing things";
            var projectName = "Some project";

            app.CreateTimeEntry(description, projectName);
            app.AssertTimeEntryInTheLog(description, projectName);

            app.TapOnTimeEntry(description, projectName);
            app.Tap(EditTimeEntry.EditProject);
            app.TapNoProjectCell();
            app.Tap(EditTimeEntry.Confirm);

            app.AssertTimeEntryInTheLog(description);
        }
Exemplo n.º 2
0
        public void TappingTheUndoButtonBringsBackTheDeletedTimeEntry()
        {
            var description = "some time entry";

            app.CreateTimeEntry(description);
            app.SwipeEntryToDelete(description);

            app.AssertNoTimeEntryInTheLog(description);

            app.TapSnackBarButton("UNDO");

            app.AssertTimeEntryInTheLog(description);
        }