TestCases.tex
52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
\documentclass[letterpaper]{scrartcl} % or whatever
\usepackage{tgpagella}
\setkomafont{disposition}{\normalfont\bfseries}
%\usepackage[markuppercase]{scrpage2}
\title{\huge System Test Plan}
\date{\today}
\author{\Large Students With A Goal (S.W.A.G.)}
\usepackage[pass]{geometry}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{enumitem}
\setlist[description]{style=multiline,leftmargin=3cm,font=\normalfont\textbf}
\setlistdepth{9}
\setlist[itemize,1]{label=$\bullet$}
\setlist[itemize,2]{label=$\bullet$}
\setlist[itemize,3]{label=$\bullet$}
\setlist[itemize,4]{label=$\bullet$}
\setlist[itemize,5]{label=$\bullet$}
\setlist[itemize,6]{label=$\bullet$}
\setlist[itemize,7]{label=$\bullet$}
\setlist[itemize,8]{label=$\bullet$}
\setlist[itemize,9]{label=$\bullet$}
\renewlist{itemize}{itemize}{9}
\begin{document}
\maketitle
\begin{center}
\includegraphics[width=12cm]{../swag_logo.png}\\
\begin{tabular}{l r}
Melody Jeng & System Architect \\
Arno Gau & Senior System Analyst \\
Rachel Lee & Software Development Lead \\
Laura Hawkins & Project Manager \\
Rohan Rangray & Algorithms Specialist\\
Andrew Buss & Database Specialist \\
Nam Phuong Tran & Quality Assurance Lead \\
Chung Kang Wang & Business Analyst\\
Masud Rahman & User Interface Specialist\\
Kevin Mach & User Interface Specialist\\
\end{tabular}
\end{center}
\newpage
\tableofcontents
\newpage
\section{Testing Notes}
\subsection{Testing Accounts}
UserX\\
- email: UserX@flashy.cards\\
- password: mynameisuserx
\\
UserY\\
- email: UserY@flashy.cards\\
- password: mynameisusery
\subsection{Fixtures}
Fixtures are provided to reset the database to a known state before running each test case. This isolates the effects of each test case and simplifies resolution of preconditions. Each test case specifies a test fixture which may be applied by running the command \texttt{scripts/apply-test-fixture.sh <fixture name>} in the root of the backend directory. Once a fixture has been applied, reload the page, log back in (if required by the test case) and continue running the test case.
\subsection{Testing Multiple Users}
Some test cases relating to real-time functionality require two users simultaneously logged into the the application. This requires two separate browser sessions. Refer to browser documentation for this.
\subsection{Supported Browser}
Flashy officially supports Chrome version 42 on Windows and Linux. Frontend functionality may be degraded on other browsers.
\subsection{Sent Emails in Development}
As noted in the backend README, when run as a local development server for testing, Flashy does not actually send email except in a production environment. Sending email requires an AWS SES key that we do not want to bundle with our application's source. Instead they are printed out to the server console. When any reference is made to an email being sent, check the console. Example:
\includegraphics[width=4in]{../doc_screenshots/console_backend.png}
\newpage
\section{Accounts}
\subsection{[A1] User Registration}
\begin{description}[style=multiline,leftmargin=3cm]
\item[Description:]{This test case outlines the presentation layer step
process of a user registering for an account with our application.}
\item[Desired Outcome:]{An account will be created for the User from the
specified username, password, email. The User will be able to log into
the aforementioned account.}
\item[User Goals:]{The User shall have an account to participate in the
website's activities.}
\item[Dependency Use Cases:]{None}
\\
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{None}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User has an account registered with the system.}
\end{itemize}
\item[Trigger:]{UserX wants to start creating flashcards for a class.}
\item[Workflow:]
\begin{enumerate}
\item
{UserX shall click the ``Sign Up'' button.}
\item
{The System shall display a registration form.}
\item
{UserX shall fill in the form with email UserX@flashy.cards and password ``mynameisuserx''.}
\item
{The System shall successfully receive the correct credentials and send an
email to the User's address with a link to validate the User's email address
and displays the Add Class page to the User.}
\item
{The System shall display a toast ``Please verify your email address! RESEND
VERIFICATION EMAIL''.}
\item
{UserX receives an email with a link to verify their email. The
User clicks the link (see Testing Notes).}
\item
{The System shall mark UserX's email as valid.}
\item
{UserX shall click ``Logout'' (power button) in the top left corner.}
\item
{The System shall present UserX Login screen.}
\item
{UserX shall once again login with ``UserX@flashy.cards'' and ``mynameisuserx''.}
\end{enumerate}
\item [Expected Result:]{UserX shall see Add Class page without a toast asking
UserX to verify their email.}
\end{description}
\newpage
{}
\subsection{[A2] User Login}
\begin{description}
\item[Description:]{This test case outlines the presentation layering step
process of a user logging into the application.}
\item[Desired Outcome:]{The User shall be able to provide their email address and
password to access their courses and flash cards. The User shall gain
access to the list of the courses they have added, and be able to review
the flashcards they have added to their decks.}
\item[User Goals:]{The User wants to resume use of the site on another
device, or use the site after logging out.}
\item[Dependency Use Cases:]{[A1] User Registration}
\\
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\item
{The User has created an account before with email ``UserX@flashy.cards'' with
password ``mynameisuserx''.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The user can navigate the site and see their data.}
\end{itemize}
\item[Trigger:]{UserX wants to view, add, or create cards for a class or classes.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall enter their email ``UserX@flashy.cards'' and password ``mynameisuserx''.}
\item
{The System shall authenticate UserX's email and password and checks if UserX is active.}
\item
{The System shall receive the credentials and display the ``Add Class'' page to the User.}
\end{enumerate}
\item [Expected Result:]
{The User is brought to the page ``Add Class''.}\\
\item [Alternate Workflow A:]
\begin{enumerate}
\item
{UserX accidentally puts in the credentials ``UserX@flashy.cards'',
``hahahaha'' and clicks the ``Login'' button.}
\item
{The System shows UserX the site login page with a message reading
``Invalid username or password!!''.}
\end {enumerate}
\item [Expected Result:]
{The User is not able to login.} \\
\item [Alternate Workflow B:]
\begin{enumerate}
\item
{UserX accidentally puts in the credentials ``NotUserX@flashy.cards'',
``mynameisuserx'' and clicks the ``Login'' button.}
\item
{The System shows UserX the site login page with a message reading
``Invalid username or password!!''.}
\end {enumerate}
\item [Expected Result:]
{The User is not able to login.} \\
\item [Alternate Workflow C:]
\begin{enumerate}
\item
{UserX accidentally puts in the credentials ``theflash@flashy.cards'',
``MyNameIsUserX'' and clicks the ``Login'' button.}
\item
{The System shows UserX the site login page with a message reading
``Invalid username or password!!''.}
\end {enumerate}
\item [Expected Result:]
{The User is not able to login.} \\
\end{description}
\newpage
{}
\subsection{[A3] Add a Class}
\begin{description}
\item[Description:]{This test case outlines the presentation layer step
process of a user adding a class.}
\item[Desired Outcome:]{The class shall be linked with the student's account
and the student shall have the ability to read and publish flashcards
for this class.}
\item[User Goals:]{The User wants to publish flashcards for this class and
read the flashcards for this class that are published by other users.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login}
\\
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{The User is whitelisted for class TEST 101.}
\item
{The User is not whitelisted for class TEST 102.}
\item
{The class TEST 103 has no whitelist.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User can read the flashcards being published for the class and
add them to their deck.}
\item
{The User can publish flashcards to be viewed and added by other users
in the same class.}
\end{itemize}
\item[Trigger:]{UserX wants to view the Live Feed and have a flashcard deck for a class.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall click ``Add Class'' on the classes dropdown from the navigation bar.}
\item
{The System shall show the user ``Add Class'' page.}
\item
{UserX shall begin to type ``TEST 101''.}
\item
{The System shall show suggestions as a user types.}
\item
{The System shall check if there is a whitelist for each class in the suggestions.}
\item
{The System shall ensure that UserX is on the whitelist for each section.}
\item
{UserX shall click on ``TEST 101'', which should not have a lock icon.}
\item
{UserX shall click on the ``Add'' button.}
\item
{The System shall add UserX to the specified class TEST 101.}
\end{enumerate}
\item[Expected Result:] {UserX has added the section and sees the Live Feed
for TEST 101.}
\item[Alternate Workflow A:]
\begin{enumerate}
\setcounter{enumi}{3}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall begin to type ``TEST 102''.}
\item
{The System shall show suggestions as a user types.}
\item
{The System shall check if there is a whitelist for each class in the suggestions.}
\item
{The System shall see that UserX is not on the whitelist.}
\item
{UserX shall see a lock icon in the suggestions for TEST 102.}
\item
{UserX shall click on ``TEST 102'', which has a lock icon.}
\item
{The System shall disable the ``Add'' button.}
\end{enumerate}
\item[Expected Result:] {UserX cannot add the specified TEST 102 and cannot
view contents related to this class.}
\item[Alternate Workflow B:]
\begin{enumerate}
\setcounter{enumi}{3}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall begin to type ``TEST 103''.}
\item
{The System shall show suggestions as UserX types.}
\item
{The System shall check if there is a whitelist for each class in the suggestions.}
\item
{The System shall see there is no whitelist for TEST 103.}
\item
{UserX shall click on ``TEST 103'', which should not have a lock icon.}
\item
{UserX shall click on the ``Add'' button.}
\item
{The System shall add UserX to TEST 103.}
\end{enumerate}
\item[Expected Result:] {UserX has added the section and sees the Live Feed
for TEST 103.}
\end{description}
\newpage
{}
\subsection{[A4] Drop a Class}
\begin{description}
\item[Description:]{This test case outlines the presentation layer step process of a user dropping a class.}
\item[Desired Outcome:]{The User has dropped the class and no longer needs
access to the flashcards for the dropped class. They can no longer
see the flashcards associated to the class that they dropped.}
\item[User Goals:]{The User shall not have access to a class and the
flashcards associated with that class. They will no longer see the class
listed in their list of ``Enrolled Classes''.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login, [A3] Add a Class}
\\
\item[Priority Level:]{``Should''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{The User has enrolled in TEST 101.}
\item
{The User is at Settings page.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User shall no longer have access to TEST 101, or associated flashcards.}
\end{itemize}
\item[Trigger:]{UserX wants to stop seeing the class's Live Feed and remove
all of their flashcards.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall click ``X'' icon next to TEST 101 in ``Enrolled Classes'' table.}
\item
{The System shall remove UserX from TEST 101.}
\item
{The System shall display a toast indicating that a class has been dropped.}
\end{enumerate}
\item[Expected Result:] {UserX no longer has access to any content related to TEST 101.}
\end{description}
\newpage
{}
\subsection{[A5] Password Change}
\begin{description}
\item[Description:]{The User shall be able to change the password for their
account in the account settings. This requires that they are logged in.}
\item[Desired Outcome:]{The User's password shall be changed and the user
shall be able to log in with the new password in the future.}
\item[User Goals:]{The User wants to use a different password in the future.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login}
\\
\item[Details:]{The user provides their current password and a new password
in a form. If the current password is correct, the system updates their
password to the requested new password.}
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{The User knows the current password (``oldPassword'').}
\item
{The User is at the Settings page.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User's password is changed}
\item
{The User can log in with the new password}
\end{itemize}
\item[Trigger:]{UserX is dissatisfied with their current password and wishes
to change it.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall enter their current password ``oldPassword'' and the desired
new password ``newPassword'' (twice) in the ``Change Password'' form.}
\item
{UserX shall click the ``Submit'' button.}
\item
{The System shall check UserX's current password.}
\item
{The System shall update the UserX's current password ``oldPassword'' to the new password ``newPassword''.}
\end{enumerate}
\item[Expected Result:] {User's password is changed from ``oldPasswrd'' to ``newPassword''.}
\end{description}
\newpage
{}
\subsection{[A6] Password Reset}
\begin{description}
\item[Description:]{The User shall be able to reset their password without
being logged in }
\item[Desired Outcome:]{The User's password shall be changed to one that
they remember}
\\
\item[User Goals:]{The User does not know their current password but wants
to log into the site}
\item[Dependency Use Cases:]{[A1] User Registration}
\\
\item[Details:]{The User provides their email in a password reset form. If
the address is valid, the site sends a password reset link with a random
token to that address. If the address is invalid, the site does not send
a link. For security reasons, we do not reveal to the user whether the
email address was valid, and we expire the link after 24 hours. When a
user visits the link emailed to them, they are able to specify a new
password in a form. When they submit the form, their password is updated
if the token is correct. }
\item[Priority Level:]{``Must''}
\item[Status]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{Account for UserX has been created.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX's password is changed.}
\item
{UserX can log in with the new password.}
\end{itemize}
\item[Trigger]{UserX forgot their password and wants to access the site.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall click the ``Forgot Password'' hyperlink.}
\item
{The System shall prompt the user for their current email.}
\item
{UserX shall submit their email ``UserX@flashy.cards''.}
\item
{The System shall check if an account exists with the email entered by UserX.}
\item
{The System shall create a new password reset token for UserX.}
\item
{The System shall send an email to UserX with a link containing the token and the
user's ID.}
\item
{UserX shall click the link in the email to visit /app/password\_reset.}
\item
{The System shall render a form that will prompt the user for a new password.}
\item
{UserX shall provide a new password, ``newPassword'', in the form.}
\item
{The System shall change the password associated with the user's email.}
\item
{UserX shall navigate back to the login page and enter ``UserX@flashy.cards''
with the old password ``mynameisuserx''.}
\item
{The System shall display ``Invalid username or password!''}
\item
{UserX shall login as ``UserX@flashy.cards'' with the password ``newPassword''.}
\end{enumerate}
\item[Expected Result:] {The login shall succeed.}
\item[Alternate Workflow:]
\begin{enumerate}
\setcounter{enumi}{4}
\itemsep1pt\parskip0pt\parsep0pt
\item
{If no such account exists, the System shall display a modal display ``Cannot find account.'' to UserX.}
\end{enumerate}
\item[Expected Result:] {UserX's password will not be reset.}
\end{description}
\newpage
{}
\subsection{[A7] Student Prevented From Accessing A Restricted Course}
\begin{description}
\item[Description:]{The User shall not be able to access a restricted course.}
\item[Desired Outcome:]{The class will have limited access and only those
users who are whitelisted may enroll in the class.}
\item[User Goals:]{The instructor wants to limit access to his class so only
the students who are actually in his class participate, and nobody
else.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login}
\\
\item[Priority Level:]{``Should''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX has valid instructor's account}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{Only those users who were whitelisted may add the class.}
\end{itemize}
\item[Trigger:]{The instructor emails the administrator and requests to
limit access to his class.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The instructor, ``INSTR1'', shall email the administrators from his UCSD email address
and requests to limit access to his course.}
\item
{ INSTR1 shall provide a list of
emails of the students that are to be whitelisted.}
\item
{The administrators shall visit a custom admin page, select the course, and
paste the list of emails.}
\item
{The administrators shall submit the page directly to the System.}
\item
{The System shall create a WhitelistedAddress for each provided email,
attaching it to the section taught by INST1.}
\item
{The System shall add any existing users whose email addresses appear
in the whitelist to the class. }
\end{enumerate}
\item[Expected Result:] {A whitelist is added to a section.}
\end{description}
\newpage
{}
\subsection{[A8] User Logout}
\begin{description}
\item[Description:]{The User shall be able to log out of his/her account on
the site.}
\item[Desired Outcome:]{The User's information and data will no longer be
accessible after logging out. }
\item[User Goals:]{The User is done with his/her session of using the
website, and wants to make sure others cannot access the data in his/her
account.}
\item[Dependency Use Cases:] {[A1] User Registration, [A2] User Login}
\\
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]{The user is logged into their account.}
\item[Postconditions:]{The user's data can no longer be accessed.}
\item[Trigger:]
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall click the ``Logout'' button.}
\item
{The System shall logs out UserX.}
\item
{The System shall redirect UserX to the login page.}
\end{enumerate}
\item[Expected Result:] {User is logged out and is redirected to the login page.}
\end{description}
\newpage
{}
\subsection{[A9] Contact Admin}
\begin{description}
\item[Description]{The User shall be able to contact the admin.}
\item[Desired Outcome]{The User shall send a message to the admin; the
admin shall receive the message.}
\item[User Goals:]{The User sends a message to the admin.}
\item[Dependency Use Cases]{None}
\\
\item[Priority Level]{``Must''}
\item[Status]{Not Implemented and Deferred}
\item[Pre-conditions]{None.}
\item[Post-conditions]{The admin receives the user's message.}
\item[Trigger]{UserX wants to contact the administrators of our application.}
\item[Workflow]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The System shall display the admin email address on every page in the
application.}
\end{enumerate}
\item[Expected Result:] {The admin's email address can be seen by UserX on every page.}
\end{description}
\newpage
{}
\subsection{[A10] Configure Account Notifications}
\begin{description}
\item[Description]{This test case outlines the presentation layering step process of a user configuring notification settings.}
\item[Desired Outcome]{The User shall only receive notifications at the
times that were specified.}
\\
\item[User Goals]{The User shall not be bothered needlessly or at
inconvenient times.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login}
\\
\item[Priority Level]{``Must''}
\item[Status]{Deferred}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{User only receive notifications at specified times}
\end{itemize}
\item[Trigger]{UserX wants to change their notification settings}
\item[Workflow]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall select ``Settings'' button from the top header.}
\item
{The System shall display a settings screen.}
\item
{UserX shall change the notification timing to 1 min.}
\item
{UserX shall click ``Save Settings'' button.}
\item
{The System shall display a message confirming the settings are saved.}
\item
{The System shall save notification settings to the user's attributes.}
\end{enumerate}
\item[Expected Result:]{UserX shall be notified at least as slow as 1 min.}
\end{description}
\newpage
{}
\section{Flashcards}
\subsection{[F1] Push Flashcard}
\begin{description}
\item[Description:]{This test case outlines the presentation layer step
process of a User contributing a flashcard to the live feed and to their deck.}
\item[Desired Outcome:]{The User shall have the flashcard added to their own deck
and the live feed.}
\\
\item[User Goals:]{The User will see their flashcard in their deck and the
flashcard will be shared with others.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login, [A3] Add a Class}
\\
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged as UserX.}
\item
{The User is logged in a different browser session as UserY.}
\item
{UserX and UserY have added the class TEST 101.}
\item
{UserX and UserY are on the live feed for TEST 101.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX has flashcard added to their deck.}
\item
{The Flashcard is shown in the live feed.}
\item
{UserY and other users can add this flashcard to their decks.}
\end{itemize}
\item[Trigger:]{UserX wants to contribute a flashcard to the class TEST 101.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item {UserX has clicked the circular plus button (``Compose'' button) in
the lower right corner of the live feed.}
\item
{The System shall present a modal with a text box.}
\item
{UserX shall select the input field of the modal and type ``The rain in Spain stays mainly in the plain''.}
\item
{UserX shall select the ``Contribute'' button in the modal.}
\item
{The System shall add the new card containing the text ``The rain in Spain stays mainly in
the plain'' to the feed of each user enrolled in ``TEST 101''.}
\item
{UserY shall see the card appear in their feed within a minute (See Notes).}
\item
{The System shall hide the modal from UserX.}
\item
{The flashcard shall be included in the UserX's deck.(c.f. Note about simultaneous browser session).}
\end{enumerate}
\item[Expected Result:] {UserX will have the new flashcard in their deck.
For UserX, the new flashcard will have a checkmark, indicating that the card
is in their deck and a pencil icon on top right to indicate UserX as
the author of the flashcard. The new flashcard will show up on UserY's
live feed on class TEST 101 without checkmark and pencil icon.}
\item[Alternative Workflow:]
\begin{enumerate}
\setcounter{enumi}{3}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall user their cursor to select the word Spain in the text box, then click the ``Blank Word'' button.}
\item
{The System shall bold the word Spain.}
\item
{UserX shall use the cursor to select the word ``plain'' in the text box, then click the ``Blank Word'' button.}
\item
{The System shall bold the word plain.}
\item
{UserX shall click the ``Contribute'' button in the modal.}
\item
{The System shall add the new flashcard containing the text ``The rain in \textbf{Spain} stays mainly in the \textbf{plain}'' to the feed of each user enrolled in TEST.}
\item
{UserY shall view the live feed and within a minute see the new flashcard appear with ``Spain'' and ``plain'' bolded.}
\end{enumerate}
\item[Expected Result:] {
UserX will have the new flashcard with the words ``Spain'' and ``plain'' bolded in their deck.
For UserX, the new flashcard will have a checkmark,
indicating that the card is in their deck and a pencil icon on
top right to indicate UserX as the author of the flashcard.
The new flashcard will show up on UserY's live feed on class TEST 101
without checkmark and pencil icon.}
\item[Alternative Workflow:]
\begin{enumerate}
\setcounter{enumi}{2}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall select the input field of the modal and type five blank spaces.}
\item
{UserX shall click the ``Contribute'' button in the dialog.}
\end{enumerate}
\item[Expected Result:] {Blank flashcard will not be added to UserX's deck or to the live feed of TEST 101.}
\item[Alternative Workflow:]
\begin{enumerate}
\setcounter{enumi}{2}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall select the input field and type ``Test''.}
\item
{UserX shall click the ``Contribute'' button in the dialog.}
\end{enumerate}
\item[Expected Result:]
{ Flashcard with input not meeting the length restriction will not be added to
UserX's deck or to the live feed of TEST 101.}
\end{description}
\newpage
{}
\subsection{[F2] Edit Flashcard}
\begin{description}
\item[Description:]{This test case outlines the presentation layering step process of a user editting a flashcard.}
\item[Desired Outcome:]{Flashcard is edited and saved appropriately}
\\
\item[User Goals:]{The User shall be able to change the text and the blanked words on a flashcard.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashcard, [F3] Pull Flashcard}
\item[Priority Level:]{``Should''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{The User is logged in a different browser session as UserY.}
\item
{User has added the class TEST 101.}
\item
{TEST 101 contains the flashcard ``This is made for \textbf{edit}''
, which was made by other user and is not in UserX's deck.}
\item
{UserX has the flashcard ``I have made an error'', which was created by UserX, in their deck.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The selected flashcard is edited}
\end{itemize}
\item[Trigger:]{The User wants to edit a card.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall hover the cursor over the flashcard ``this is made for \textbf{edit}''.}
\item
{UserX shall click the edit button on bottom left of the hovered flashcard. The blue edit button looks like a pencil slanted writing on a paper.}
\item
{The System shall present a modal that contains the text of the selected flashcard.}
\item
{UserX shall be able to change the text to ``Edit has been made''.}
\item
{UserX shall click 'Save'}
\item
{The System shall hide the modal from UserX.}
\end{enumerate}
\item[Expected Results:]{The selected flashcard's text shall be changed to ``Edit has been made''.}
\item[Alternative Workflow A:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall move the cursor over the flash card ``this is made for edit2''.}
\item
{UserX shall click the edit button on bottom left of the selected flashcard.}
\item
{The System shall present a modal that contains the text of the selected flashcard.}
\item
{UserX shall be able to change the bolded text from ``edit2'' to ``fun'' by highlighting the words and click blank words.}
\item
{UserX shall click 'Save'}
\item
{The System shall hide the modal from UserX.}
\item
{The selected flashcard's blanked words shall be changed to ``fun''.}
\end{enumerate}
\item[Expected Result:]{The selected flashcard's blanked words shall be changed to ``fun''.}
\item[Alternative Workflow B:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall move the cursor over the flash card ``this is made for edit3''.}
\item
{UserX shall click the edit button on bottom left of the selected flashcard.}
\item
{The System shall present a modal that contains the text of the selected flashcard.}
\item
{UserX shall be able the study date to 6/12.}
\item
{UserX shall click 'Save'}
\item
{The System shall hide the modal from UserX.}
\end{enumerate}
\item[Expected Result:]{The selected flashcard's study date shall be changed to 6/12.}
\end{description}
\newpage
{}
\subsection{[F3] Pull Flashcard}
\begin{description}
\item[Description:]{This test case outlines the presentation layering step
process of a user pulling a flashcard.}
\item[Desired Outcome:]{The User shall have the flashcard added to their deck.}
\\
\item[User Goals:]{The User will be able to review that flashcard.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashard}
\item[Priority Level:]{``Must'' }
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{User has registered for class TEST 101.}
\item
{User is at live feed for TEST 101.}
\item
{That flashcard with the text ``Pull me'' is in the Live Feed of class TEST 101.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall have that flashcard with the text ``Pull me'' added to their deck}
\item
{UserX shall be able to review this flashcard later}
\end{itemize}
\item[Trigger:]{UserX wants to add a flashcard to their deck to study it.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall choose the flashcard with the text ``Pull me'' from the
class TEST 101 feed and hover their cursor over it.}
\item
{The System shall present buttons on mouseover.}
\item
{UserX shall click on the large plus that appears over the flashcard with the text ``Pull me''.}
\item
{The System shall add the flashcard into UserX's deck.
A checkmark shall appear on top right corner of the flashcard.}
\item
{UserX shall click the ``Deck'' icon on the top left to enter their
deck.}
\item
{UserX shall check that the card with the text ``Pull me'' has been added to their class
TEST 101 deck.}
\end{enumerate}
\item[Expected Result:] {The flashcard with the text ``Pull me'' is in the class
TEST 101 deck. If UserX hovers the cursor over the flashcard at the live feed of
TEST 101, the original placement of the large plus button has been changed to large minus button.}
\end{description}
\newpage
{}
\subsection{[F4] Flag Inappropriate Cards}
\begin{description}
\item[Description:]{This test case outlines the presentation layering step
process of a user flagging a card they have deemed inappropriate.}
\item[Desired Outcome:]{The flashcard's inappropriateness variable is
adjusted.}
\\
\item[User Goals:]{To note if a card should not belong in the class and
should not be displayed in the feed.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashcard}
\item[Priority Level:]{``Should''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX has registered for a class TEST 101.}
\item
{UserX is in the live feed for class TEST 101.}
\item
{Flashcard with text ``TESTY FLASHY'' has been created for TEST 101.}
\item
{That flashcard ``TESTY FLASHY'' is in the Live Feed for TEST 101.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{User shall have that flashcard added to their deck}
\item
{User can review this flashcard later}
\end{itemize}
\item[Trigger:]{UserX wants to mark a card innapropriate.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall choose the flashcard with the text ``TESTY FLASHY'' from the
feed and hover their cursor over it.}
\item
{The System shall present buttons on mouseover.}
\item
{UserX shall click on the crossed out eye icon (Hide) that appears on the card.}
\item
{The System shall hide the card from UserX and display a toast, ``Card hidden! If the card was spammy or abusive you may also REPORT''.}
\item
{UserX shall click the REPORT.}
\end{enumerate}
\item[Expected Result:] {The System shall display a toast, ``Report successful: thanks for letting us know!''}
\end{description}
\newpage
{}
\subsection{[F5] Filter Flashcards}
\begin{description}
\item[Description:]{This test case outlines the presentation layer process
of a user filtering existing flashcards to view only a specified subset.}
\item[Desired Outcome:]{The User shall see flashcards based on the filter
options.}
\item[User Goals:]{The User can find what they are specifically looking
for}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashcard, [F3] Pull
Flashcard}
\item[Priority Level:]{``Should''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{User is logged in as UserX.}
\item
{UserX has registered for the class TEST 101.}
\item
{There exist flashcards in TEST 101 with the text ``apple'' and ``banana''
for each week in the quarter.}
\item
{There exist flashcards in TEST 101 with the text ``orange'' that are hidden
for each week in the quarter.}
\item
{UserX is at Card List View for the class.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{User only sees flashcards pertaining to selected dates.}
\end{itemize}
\item[Trigger:]{User is looking for specific flashcards.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall deselect ``Week Nine'' from top.}
\item
{The System shall hide all cards from Week 9.}
\item
{UserX shall search for ``app'' in the search bar in the top right.}
\item
{The System shall display only cards including text ``app''.}
\item
{UserX shall click ``Show Hidden'' button in the top left and clear
the text in the search box.}
\item
{The System shall display all cards, excluding those from Week 9.}
\end{enumerate}
\item[Expected Result:] {UserX shall see 9 cards with text ``apple'', 9 cards with text ``banana'', and 9 cards with text ``orange'', distributed evenly among weeks.}
\end{description}
\newpage
{}
\subsection{[F6] Blank Out Words in Flashcard}
\begin{description}
\item[Description:]{This test case outlines the presentation layer process
of the User to create keywords in a card they are pushing.}
\item[Desired Outcome:]{The blanked out words (visually bolded) in the
flashcard notify the System that they are keywords.}
\item[User Goals:]{The User shall mark some words as keywords so the System
may later quiz the User by blanking out one keyword at a time and having the
User enter what they think the keyword is.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashcard}
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
\item
{The User is logged in as UserX.}
\item
{The User has added the class TEST 101.}
\item
{The User is at the Feed View for the class TEST 101.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The blanked out words (keyword) ``Spain'' in the flashcard are marked with underline.}
\end{itemize}
\item[Trigger:] {The User wants their newly pushed card to have the keyword ``Spain''.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall click the Compose button (+ circle on bottom right) of Feed.}
\item
{The System shall bring up the composition flashcard modal.}
\item
{UserX shall type text ``The rain in Spain stays mainly in the plain''
into the composition modal, replacing ``Write a flashcard''.}
\item
{UserX shall highlight the word ``Spain''.}
\item {UserX shall press Blank Selected Text button.}
\item {UserX shall press Contribute button to push the flashcard.}
\item
{The System will save the blanked out word in the Flashcard Mask of the
newly pushed flashcard.}
\item {The Feed shall display the new card with the keyword underlined.}
\end{enumerate}
\item[Expected Result:] {The System shall show ``Spain'' underlined and bolded
in the flashcard. The flashcard is visible in the Feed and Deck of class TEST 101.}
\end{description}
\newpage
{}
\subsection{[F7] Fix Flashcard}
\begin{description}
\item[Description:]{This Test Case outlines the presentation layer process
for the User to alter (``fix'') a flashcard they made originally and not have
to make a new copy of it. It is only a ``fix'' if no other users have the
flashcard in their Decks AND the User is the author.}
\item[Desired Outcome:]{The User shall change one of their flashcard's text
and that alteration will be visible to all users in the Feed.}
\item[User Goals:]{The User shall make their own authored flashcard say
something different than it did originally.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashcard}
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item {The User is logged in a separate browser as UserY.}
\item
{UserX and UserY has enrolled in the class TEST 101.}
\item
{UserX is at the Deck View for the class TEST 101.}
\item {UserY is at the Feed View for the class TEST 101.}
\item
{The User has contributed and pushed a flashcard to the TEST 101 Feed, which is
also in their Deck with text
``My card is currently broken''; this flashcard is for fixing.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The authoring User shall see their alteration for that flashcard in their
Feed and Deck for TEST 101.}
\item {Other users shall see the fixed flashcard in the Feed for TEST 101 if they
refresh the app.}
\end{itemize}
\item[Trigger:] {UserX realizes that a card they created previously does
not say what they currently desire and wishes to change it.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall hover the Flashcard they created with text ``My card is currently
broken''.}
\item
{UserX shall select the bottom-left blue Edit Card pencil button on the flashcard.}
\item
{The System shall bring up the flashcard Edit modal.}
\item
{UserX shall highlight the text ``broken''.}
\item {UserX shall change the highlighted word into ``fixed'' so that the text
reads ``My card is currently fixed''.}
\item
{UserX shall press the Save Changes button.}
\item
{The System shall update the flashcard's text content.}
\item
{The System shall close the edit flashcard modal.}
\item {The Client shall show the flashcard in the UserX's TEST 101 Deck with the
fixed text.}
\item {UserY refreshes the TEST 101 Feed view and sees the flashcard ``My card is
currently fixed''.}
\end{enumerate}
\item[Expected Results:]{The Client shall show the fixed flashcard
in UserX's TEST 101 class Deck with the new text:``My card is currently fixed''.
The Client shall show the fixed flashcard in UserY's TEST 101 Feed view as well,
after page refresh.}
\end{description}
\newpage
{}
\subsection{[F8] Hide cards from feed}
\begin{description}
\item[Description:]{This test case outlines the presentation layer process
for the User shall be able to hide cards from their own view, on
the Feed and Deck.}
\item[Desired Outcome:]{The System marks the flashcard as hidden from the
User so that the User cannot see the flashcard in the Feed or Deck.}
\item[User Goals:]{The flashcard is no longer visible to the User in the Feed or
Deck views.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User
Login, [A3] Add a Class, [F1] Push Flashcard}
\item[Priority Level:]{``Should''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{The User has enrolled in the class TEST 101.}
\item
{The User is at the Feed View or Deck View (alternate workflow)
for the class TEST 101.}
\item
{The User has composed and contributed a flashcard to the Feed with text
``The rain in Spain stays mainly in the plain''.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item{Flashcard is not viewable by user in the Feed or Deck views in TEST 101.}
\end{itemize}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item {UserX has navigated to the Feed View of TEST 101.}
\item
{UserX hovers the flashcard they added with the text ``The rain in Spain stays
mainly in the plain''.}
\item {UserX presses Hide button, which is the red crossed-out eye.}
\item {The System shall hide the card.}
\item {The Client shall remove the card from view for UserX.}
\item {A toast is shown on the client that allows the User to report the card.}
\item {The card is not shown on the Feed or Deck.}
\end{enumerate}
\item[Expected Result:]{The Client shows the Feed without the flashcard of text
``The rain in Spain stays mainly in the plain''. A toast that allows UserX to
report the card shows up temporarily.}
\item[Alternate Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item {UserX has navigated to the Deck View of TEST 101.}
\item
{UserX hovers the flashcard they added with the text ``The rain in Spain stays
mainly in the plain''.}
\item {UserX presses hide button, which is the red crossed-out eye.}
\item {The System shall hide the card.}
\item {A toast is shown on the client that allows the User to report the card.}
\item {The card is not shown on the Feed or Deck.}
\end{enumerate}
\item[Expected Result:]{The Client shows the Deck without the flashcard of text
``The rain in Spain stays mainly in the plain''. A toast that allows UserX to
report the card shows up temporarily.}
\end{description}
\newpage
{}
\subsection{[F9] View a Feed}
\begin{description}
\item[Description:]{This Test Case outlines the presentation layer process
process of a user viewing a class feed of flashcards.}
\item[Desired Outcome:]{The System shall show the user the Feed for their
class.}
\\
\item[User Goals:]{The User will see the Feed for the class User selected.}
\item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login,
[A3] Add a Class}
\\
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
{The User is logged in as UserX.}
\item
{The User has added the class TEST 101.}
\end{itemize}
\item[Postconditions:]\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item {User shall see the Feed for the class TEST 101.}
\end{itemize}
\item[Trigger:]{The User wants to view Feed of their class.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX is at any view on the application.}
\item {UserX shall press the menu on the far left of the navigation bar.}
\item {UserX shall select the class TEST 101 from the menu.}
\item
{The System shall display the Feed view of TEST 101 to UserX.}
\end{enumerate}
\item[Expected Result:]{UserX should be able to see the Feed view for the
selected class TEST 101.}
\end{description}
\newpage
{}
\section{Decks}
\subsection{[D1] Remove a card from a deck}
\begin{description}
\item[Description:]{This test case outlines the presentation layering step process
of a user removing a flashcard from their deck.}
\item[Desired Outcome:]{The deck does not display the removed card.}
\\
\item[User Goals:]{The User wants to only review cards that the User wants to review.}
\item[Dependency Use Cases:]{[A3] Add a class, [F1] Push Flashcard, [F3] Pull Flashcard}
\\
\item[Priority Level:]{''Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{User is logged in as UserX.}
\item
{UserX has enrolled in the class TEST 101.}
\item
{UserX has added cards from the feed into their deck.}
\item
{UserX is at the deck/live feed screen for the class TEST 101.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{Desired card are hidden from the User.}
\end{itemize}
\item[Trigger:]{UserX wants a card to be removed from their deck.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX is at the Deck screen for the class.}
\item
{UserX shall hover over the card they want to delete and click
the trash icon (hereafter, the ``Delete'' button) in the lower right
corner of the card.}
\item
{UserX shall select the appropriate class.}
\item
{The System removes the flashcard from UserX's Deck.}
\item
{The System updates the flashcard's position in the Live Feed of class TEST 101.}
\item
{The System updates UserX's Deck.}
\end{enumerate}
\item[Expected Result:] {The flashcard is removed from UserX's deck.}
\item[Alternate Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX is at the Live Feed screen for the class.}
\item
{UserX shall hover over the card they want to delete and click
the ``Delete'' button in the lower right corner of the card.}
\item
{The System removes the flashcard from the User's Deck.}
\item
{The System updates the flashcard's position in the Live Feed.}
\item
{The System updates the User's Deck.}
\end{enumerate}
\item[Expected Result:] {The flashcard is removed from UserX's deck.}
\end{description}
\newpage
{}
\subsection{[D2] View Cards in Deck}
\begin{description}
\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 shall be able to view all the cards in their deck.}
\\
\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}
\item[Priority Level:]{``Must''}
\item[Status:]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{A browser session is logged in as UserX.}
\item
{Another browser session is logged in as UserY.}
\item
{UserX and UserY are registered for class TEST 101.}
\item
{UserX and UserY are at the feed view for TEST 101.}
\end{itemize}
\item[Postconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{Cards in the deck are in time order.}
\end{itemize}
\item[Trigger:]{User wants to view a more organized deck.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall click the ``Compose'' button in the lower right.}
\item
{The System shall present a modal with a text box.}
\item
{UserX shall type in ``Card A'' and click ``Contribute''.}
\item
{The System shall create a new card and add it to the feed.}
\item
{UserX shall click the ``Compose'' button in the lower right.}
\item
{The System shall present a modal with a text box.}
\item
{UserX shall type in ``Card B'' and click ``Contribute''.}
\item
{The System shall create a new card and add it to the feed.}
\item
{Another User logged in as UserY shall view the feed for TEST 101.}
\item
{UserY shall click ``Card B'' to pull the card and add it to their deck.}
\item
{UserY shall click ``Card A'' to pull the card and add it to their deck.}
\item
{UserY shall go to their Deck View.}
\end{enumerate}
\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}
\newpage
{}
\section{Study}
\subsection{[R1] Study Deck}
\begin{description}
\item[Description]{This test case outlines the presentation layering step process of a user studying a flashcard.}
\item[Desired Outcome]{The User shall be presented with individual
flashcards in an optimized order. Blanks will be empty and the user will
have a text boxes to fill in.}
\item[User Goals]{The User shall be able to study all flashcards in their deck from the appropriate classes.}
\item[Dependency Use Cases]{[A1] User Registration, [F2] User Login,
[A3] Add a Class, [F1]Push Flashcard, [F3] Pull Flashcards}
\item[Priority Level]{``Must''}
\item[Status]{Implemented}
\item[Preconditions:]
\begin{itemize}
\itemsep1pt\parskip0pt\parsep0pt
\item
{The User is logged in as UserX.}
\item
{The User has enrolled in the class TEST 101.}
\item
{The User has enrolled in the class TEST 102.}
\item
{The User has enrolled in the class TEST 103.}
\item
{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 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
{UserX has studied cards in their deck.}
\end{itemize}
\item[Trigger:]{UserX wishes to study flashcards compiled for a specific class.}
\item[Workflow:]
\begin{enumerate}
\itemsep1pt\parskip0pt\parsep0pt
\item
{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 UserX with card, ``Hello, I am a \rule{1.5cm}{0.15mm} and I was added first''.}
\item
{UserX shall enter ``Flashcard'' in the Answer input box.}
\item
{UserX shall click ``Check''.}
\item
{The System shall present UserX with the actual card and the card with UserX's response with ``flashcard'' and ``Flashcard'' bolded.}
\item
{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[Alternate Workflow:]
\begin{enumerate}
\setcounter{enumi}{1}
\itemsep1pt\parskip0pt\parsep0pt
\item
{UserX shall select ``TEST 103'' to study.}
\item
{UserX shall click ``Fetch!''.}
\end{enumerate}
\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
\end{document}