As a user, by default, I should see the most fresh comments. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki

Use Case: User view the most fresh comments

Use Case Name: ViewMostFreshComments

Participating Actors: User

Goal: By default See the most fresh comments

Trigger: The user enters main fragment, by default the question list is sort by date.

Precondition: User enters main fragment.

Postcondition: The comments are sorted by post time as default, and new comments are appeared in the list.

Basic Flow:

1. User is viewing Question List or the Question details, by default the question list is sort by date.

2. If some Author post new Questions/Answers/Replies.

3. Press on the list pull down and release, the List will be refreshed and the most fresh comments
can be viewed by user.

Exceptions:

3.0 Internet is not connected

- 3.1 Return to the main fragment, the List become empty

- 3.2 A Toast shows no internet access

- 3.3 Go to profile fragment and click local questions button to view saved questions and answers

Test:

  • the apps will allow user see the most fresh comments.
  • Login as an Author
  • Create some Questions
  • Create some answers
  • logout as User
  • view the questions
  • Are the newest answer displayed on the first position below the question?