コード例 #1
0
        public void UpdatesTheCorrectCellWhenTheDescriptionIsChanged()
        {
            var initialDescription = "This is a time entry";
            var appendedText       = " (and stuff)";
            var newDescription     = initialDescription + appendedText;

            app.StartTimeEntryWithDescription(initialDescription);
            app.StopTimeEntry();

            app.TapOnTimeEntryWithDescription(initialDescription);

            app.WaitForElement(EditTimeEntry.EditDescription);
            app.Tap(EditTimeEntry.EditDescription);
            app.EnterText(appendedText);
            app.DismissKeyboard();

            app.ConfirmEditTimeEntry();

            app.WaitForNoElement(EditTimeEntry.Confirm);

            app.WaitForNoElement(x => x.Text(initialDescription));
            app.WaitForElement(x => x.Text(newDescription));
        }