Description
A instrumented test (UI Test) for NotesFragment has been set up. It checks, if all possible NotesFragment-UI actions (or action paths) operate properly.
Affects
Automatic testing is the main topic, therefore @silvia-ivanova-github-rep is assigned.
Notes for Reviewer
Run the UI test - all included test-paths should work out properly.
Those are in specific:
initial UI setup of the NotesFragment and showing of RecyclerViewList containing cardViews, which contain views for a noteTypeIcon, noteTitle text and noteCreateDate text.
an add-Button is shown and by clicking on it a popupMenu is shown with 3 clickable-items.
by clicking on "add-text-note"-item a TextNoteEditorFragment is displayed, just as it happens when you click on an existing item of the RecyclerViewList.
click on an RecyclerViewList-item displays TextNoteEditorFragment as well.
swipe left on an RecyclerViewList-item draws a child on it with a different background (red color) and a trashcan-icon.
swipe left on an RecyclerViewList-item displays a snackbar just at its position with a delete-notification and an undo-action.
not click on the undo-action of the delete-snackbar will delete the cardView of the swiped item.
click on the undo-action of the delete-snackbar will restore the initial cardView of the swiped item.
BTW: there is no DrawableMatcher in Espresso to check that in onView, so I created a default one.
Try to run it within our actions environment as well, just as the unit tests - that should work as well.
BTW: To setup UI tests some gradle-dependencies were added.
Description A instrumented test (UI Test) for NotesFragment has been set up. It checks, if all possible NotesFragment-UI actions (or action paths) operate properly.
Affects Automatic testing is the main topic, therefore @silvia-ivanova-github-rep is assigned.
Notes for Reviewer Run the UI test - all included test-paths should work out properly. Those are in specific:
BTW: there is no DrawableMatcher in Espresso to check that in onView, so I created a default one.
Try to run it within our actions environment as well, just as the unit tests - that should work as well.
BTW: To setup UI tests some gradle-dependencies were added.
Please review & comment/approve.