From 2b3d8d5509886f139b1adb8eb4a785b7e95fd714 Mon Sep 17 00:00:00 2001
From: mjeng <mjeng@flashy.cards>
Date: Fri, 5 Jun 2015 03:17:12 -0400
Subject: [PATCH] First draft of TestCases, test underline

---
 TestCases.tex | 74 +++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 47 insertions(+), 27 deletions(-)

diff --git a/TestCases.tex b/TestCases.tex
index f6f5191..a634423 100644
--- a/TestCases.tex
+++ b/TestCases.tex
@@ -1575,10 +1575,10 @@ of a user removing a flashcard from their deck.}
 \item[Description:]{This test case outlines the presentation layering step
 process of a user viewing all the cards in their deck.}
 
-\item[Desired Outcome:]{The User views all the cards in their deck.}
+\item[Desired Outcome:]{The User shall be able to view all the cards in their deck.}
 \\
 
-\item[User Goals:]{To see all pulled cards for easier editing purpose.}
+\item[User Goals:]{To see all pulled cards for easier editing purposes.}
 
 \item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login, 
 [A3] Add a Class, [F1] Push Flashcard, [F3] Pull Flashcard}
@@ -1597,7 +1597,7 @@ process of a user viewing all the cards in their deck.}
 \item
   {UserX and UserY are registered for class TEST 101.}
 \item
-  {UserX and UserY at the feed view for TEST 101.}
+  {UserX and UserY are at the feed view for TEST 101.}
 \end{itemize}
 
 \item[Postconditions:]
@@ -1638,8 +1638,8 @@ process of a user viewing all the cards in their deck.}
   {UserY shall go to their Deck View.}
 \end{enumerate}
 
-\item[Expected Results]{For TEST1@flashy.cards the cards are listed in the
- order ``Card B'', ``Card A'' and for testuser@flashy.cards they are in the
+\item[Expected Results]{For UserX the cards are listed in the
+ order ``Card B'', ``Card A'' and for UserY they are in the
 deck view as ``Card A'', ``Card B''.} 
 
 \end{description}
@@ -1670,28 +1670,26 @@ have a text boxes to fill in.}
 \begin{itemize}
 \itemsep1pt\parskip0pt\parsep0pt
 \item
-  {The User has registered with the email testuser@flashy.cards.}
+  {The User is logged in as UserX.}
+\item
+  {The User has enrolled in the class TEST 101.}
 \item
-  {The User has verified their email address.}
+  {The User has enrolled in the class TEST 102.}
 \item
-  {The User is logged in with the above email.}
+  {The User has enrolled in the class TEST 103.}
 \item
-  {The user has enrolled in the class TEST Study.}
+  {The User has two flashcards in their TEST 101 deck, ``Hello, I am 
+a \textbf{flashcard} and I was added first'', ``I am clearly 
+the superior card''.}
 \item
-  {The User has flashcards in their deck.}
+  {The User has two flashcards in their TEST 102 deck, ``I hope you don't \textbf{see me}'' and ``\textbf{STUDY TIME}, dun dun dun''.}
+\item
+  {The User has no flashcards in their TEST 103 deck.}
 \end{itemize}
 
 \item[Postconditions:]
 \begin{itemize}
 \itemsep1pt\parskip0pt\parsep0pt
-\item
-  {The User shall see a single card with blanks.}
-\item
-  {The User shall be presented with a text box to fill in for the blank space.}
-\item
-  {The User's response shall be stored on the server.}
-\item
-  {The User can choose whether their response is correct or not.}
 \end{itemize}
 
 \item[Trigger:]{UserX wishes to study flashcards compiled for a specific class.}
@@ -1700,24 +1698,46 @@ have a text boxes to fill in.}
 \begin{enumerate}
 \itemsep1pt\parskip0pt\parsep0pt
 \item
-  {UserX shall click on the study button on top right corner.}
+  {UserX shall click on ``Study'' (magnifying glass in a square) in 
+the top navigation bar.}
+\item
+  {UserX shall choose to study for TEST 101.}
+\item
+  {UserX shall click ``Fetch!''}
 \item
-  {The System shall present a modal that contains the flashcard and blanks to fill in.}
+  {The System shall present UserX with card, ``Hello, I am a \rule{1.5cm}{0.15mm} and I was added first''.}
 \item
-  {UserX shall fill in ``test'' in the blank.}
+  {UserX shall enter ``Flashcard'' in the Answer input box.}
 \item
-  {UserX shall click ``CHECK'' button to submit the response.}
+  {UserX shall click ``Check''.}
 \item
-  {The System shall display a new modal with the answer of the flashcard.}
+  {The System shall present UserX with the actual card and the card with UserX's response with ``flashcard'' and ``Flashcard'' bolded.}
 \item
-  {UserX shall click ``Yes'' button. (Either YES or NO leads to the same behavior for the User)}
+  {UserX shall determine if they have properly filled in the blank. Since a 
+little uppercase/lowercase difference is not a big deal, UserX shall click 
+``Yes'' where asked if their response was correct.}
+\item
+  {The System shall present UserX with card ``Clearly I am the superior card''
+and notify UserX that the card has no blanks.}
+\item
+  {UserX shall click ``Next'' after reviewing the card.}
+\end{enumerate}
+
+\item[Expected Result:] {The System shall once again present UserX with
+``Hello, I am a \rule{1.5cm}{0.15mm} and I was added first''.}
+
+\item[Workflow:]
+\begin{enumerate}
+\setcounter{enumi}{2}
+\itemsep1pt\parskip0pt\parsep0pt
 \item
-  {The Server saves the response and updates statistics about the flashcard.}
+  {UserX shall select ``TEST 103'' to study.}
 \item
-  {Loop back to 2.}
+  {UserX shall click ``Fetch''.}
 \end{enumerate}
 
-\item[Expected Results]{The workflow should be able to loop continuously.}
+\item[Expected Result:] {The System shall display a toast, ``Can't study; 
+there aren't any cards in your deck for the selection actions.''}
 \end{description}
 \newpage
 
-- 
1.9.1