-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.txt
2201 lines (2028 loc) · 67.7 KB
/
tests.txt
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
index
PAGE_SIZE
Rows of data per page
✓ default 10
✓ Integer
DASHBOARD_SERVER
URL of dashboard server
✓ Address
DOMAIN
Domain of server
✓ default unset
✓ String
HOST
IP or address web server listens on
✓ default localhost
✓ IP address
PORT
Port web server listens on
✓ default 8000
✓ Integer
ID_LENGTH
Length of random ID
✓ default 8
✓ Integer
ALLOW_PUBLIC_API
Allow HTTP access to /api
✓ default false
✓ Boolean
DELETE_DELAY
Cool-down time in days to delete accounts
✓ default 7
✓ Integer
APPLICATION_SERVER
URL of application server
✓ Address
APPLICATION_SERVER_TOKEN
Secret shared between servers
✓ String
BCRYPT_WORKLOAD_FACTOR
Strength to protect passwords
✓ default 10
✓ Integer
ENCRYPTION_SECRET
32-character secret string
✓ String
ENCRYPTION_SECRET_IV
16-character secret string
✓ String
DISABLE_REGISTRATION
Disable UI (not API) for registering
✓ default unset
✓ Boolean
MINIMUM_PASSWORD_LENGTH
Shortest password length
✓ default 1
✓ Integer
MAXIMUM_PASSWORD_LENGTH
Longest password length
✓ default 50
✓ Integer
MINIMUM_USERNAME_LENGTH
Shortest username length
✓ default 1
✓ Integer
MAXIMUM_USERNAME_LENGTH
Longest username length
✓ default 50
✓ Integer
MINIMUM_RESET_CODE_LENGTH
Shortest reset code length
✓ default 6
✓ Integer
MAXIMUM_RESET_CODE_LENGTH
Longest reset code length
✓ default 50
✓ Integer
REQUIRE_PROFILE
Require registration information
✓ default unset
✓ Integer
USER_PROFILE_FIELDS
Information to collect at registration
✓ default contact-email,full-name
✓ Profile property list
SESSION_VERIFICATION_DELAY
Seconds before verifying a prolongued session
✓ default 14400
✓ Integer
index
MINIMUM_ORGANIZATION_NAME_LENGTH
Shortest organization name length
✓ default 1
✓ Integer
MAXIMUM_ORGANIZATION_NAME_LENGTH
Longest organization name length
✓ default 50
✓ Integer
MINIMUM_INVITATION_CODE_LENGTH
Shortest invitation code length
✓ default 6
✓ Integer
MAXIMUM_INVITATION_CODE_LENGTH
Longest invitation code length
✓ default 50
✓ Integer
MEMBERSHIP_PROFILE_FIELDS
Personal information to share with members
✓ default display-name,display-email
✓ Profile property list
internal-api/api
API#createFromSitemap
✓ should remap urls to object
✓ should capitalize the last segment
✓ should capitalize hyphenated last segment
internal-api/format
Format#parseDate
✓ should throw error for missing date
✓ should throw error for invalid date
Format#date
✓ should zero pad days
✓ should zero pad months
internal-api/hash
Hash#sha512Hash
✓ should produce the same hash each time
Hash#sha512HashCompare
✓ should match text with hash
Hash#bcryptHashHash
✓ should hash differently each time
Hash#bcryptHashCompare
✓ should match passwords
✓ should not match invalid passwords
internal-api/html
HTML#parseHTML
✓ should reject invalid strings
✓ should return expected contents
HTML#findOrCreateTableBody
✓ should require a document
✓ should require a table
✓ should accept table ids
✓ should return existing TBODY
✓ should create new TBODY as last child of table
HTML#renderTable
✓ should require a document
✓ should require a table
✓ should require a template
✓ should require a dataset
✓ should create TR for each item
✓ should alternate TR class
✓ should contain expected data
HTML#renderList
✓ should require a document
✓ should require a list
✓ should require a template
✓ should require a dataset
✓ should create LI for each item
✓ should contain expected data
HTML#renderTemplate
✓ should require a document
✓ should not require a data object
✓ should require a template
✓ should require a parent element
✓ should append contents to parent element
HTML#renderPagination
✓ should require a document
✓ should require a total greater than 0
✓ should require an offset less than total
✓ should accept null or string offset
✓ should enforce global page size
✓ should override global page size
internal-api/merge-package-json
mergeTitle
✓ should prioritize application title
✓ should default to Dashboard title
mergeScriptArray
✓ should add scripts
✓ should put application scripts last
internal-api/proxy
Proxy#pass
✓ should include x-accountid header (93ms)
✓ should include x-sessionid header (54ms)
✓ should include x-dashboard-server header (53ms)
✓ should create x-application-server-token header (47ms)
✓ should include referer header (47ms)
✓ should send POST data (51ms)
✓ should send multipart POST data (60ms)
✓ should send file upload POST data (56ms)
✓ should execute proxy handlers (42ms)
internal-api/response
Response#wrapTemplateWithSrcDoc (global setting)
✓ should transfer head content from page to template
✓ should transfer head content from template to page
✓ should transfer navigation to template from page
✓ should transfer title to page from template
✓ should remove menus for guests
✓ should disable administrator menu for normal user (46ms)
✓ should add account menu links from package.json (43ms)
✓ should add administrator menu links from package.json (53ms)
Response#wrapTemplateWithSrcDoc (config override)
✓ should transfer head content from page to template
✓ should transfer head content from template to page
✓ should transfer navigation to template from page
✓ should transfer title to page from template
✓ should remove menus for guests
✓ should disable administrator menu for normal user (50ms)
✓ should add account menu links from package.json (49ms)
✓ should add administrator menu links from package.json (44ms)
✓ should execute "page" handlers on the rendered page
✓ should execute "template" handlers on the rendered + page-merged template
✓ should execute "page" and "template" handlers on the rendered + page-merged template
✓ should execute each content handler
Response#throw404
✓ should set 404 status
✓ should contain 404 code
✓ should contain 404 error
Response#throw500
✓ should set 500 status
✓ should contain 500 code
✓ should contain error message
Response#throw511
✓ should set 511 status
✓ should contain 511 code
internal-api/server
Server#authenticateRequest
✓ should reject missing token
✓ should reject invalid token
✓ should identify user from token (40ms)
Server#parsePostData
✓ should ignore file uploads
✓ should ignore no-content uploads
✓ should parse post data
Server#receiveRequest
✓ should bind query data of URL to req
✓ should not bind route for unknown url
✓ should bind route to req
✓ should redirect user to verification (54ms)
✓ should accept recent verification (59ms)
✓ should not require verification (59ms)
✓ should execute "before" server handler before identifying user (46ms)
✓ should execute "after" server handler after identifying user (47ms)
✓ should execute "after" server handler after identifying guest
✓ should execute "before" and "after" server handler
✓ should execute each server handler
internal-api/sitemap
Sitemap#authenticateRequest
✓ should substitute language HTML file (46ms)
internal-api/storage-cache
get
✓ should require key
✓ should return value
set
✓ should require key
✓ should set value
remove
✓ should require key
✓ should remove object
internal-api/storage-list
StorageList#add
✓ should add string properties
✓ should add int properties
✓ should add float properties
✓ should add boolean properties
StorageList#addMany
✓ should add multiple properties
✓ should skip duplicates
StorageList#count
✓ should count the items (3610ms)
✓ should not count removed items (4812ms)
StorageList#remove
✓ should remove the item (2406ms)
StorageList#list
✓ should change page size (4813ms)
✓ should enforce offset (3615ms)
StorageList#listAll
✓ should return all records (7217ms)
internal-api/storage-object
getProperties
✓ should return string properties
✓ should return int properties
✓ should return float properties
✓ should return boolean properties
getProperty
✓ should return string property
✓ should return int property
✓ should return float property
✓ should return boolean property
removeProperty
✓ should delete properties
removeProperties
✓ should delete properties
setProperty
✓ should set string property
✓ should set int property
✓ should set float property
✓ should set boolean property
setProperties
✓ should set string properties
✓ should set int properties
✓ should set float properties
✓ should set boolean properties
internal-api/storage
Storage#read
✓ should require file
✓ should return file contents
Storage#readMany
✓ should require files array
✓ should return files contents
Storage#write
✓ should require file
✓ should require contents
✓ should accept content object
✓ should accept content string
✓ should write file contents
✓ should encrypt contents
Storage#delete
✓ should require file
✓ should delete file
internal-api/timestamp
#create
✓ should reject null date
✓ should accept date
✓ should accept string
internal-api/uuid
#random
✓ should reject null length
#v4
✓ should be a v4 uuid
/account/change-password
view
✓ should present the form (614ms)
submit
✓ should apply new password (screenshots) (3395ms)
errors
✓ invalid-new-password (1778ms)
✓ invalid-new-password-length (2049ms)
✓ invalid-confirm-password (1944ms)
✓ invalid-password (1562ms)
/account/change-username
view
✓ should present the form (556ms)
submit
✓ should apply new username (screenshots) (3558ms)
errors
✓ invalid-new-username (1388ms)
✓ invalid-new-username-length (1435ms)
✓ invalid-password (1821ms)
/account/create-profile
view
✓ should present the form (532ms)
✓ should have elements for full-name (554ms)
✓ should have elements for contact-email (521ms)
✓ should have elements for display-email (476ms)
✓ should have elements for dob (563ms)
✓ should have elements for phone (555ms)
✓ should have elements for occupation (507ms)
✓ should have elements for location (508ms)
✓ should have elements for company-name (501ms)
✓ should have elements for website (491ms)
submit
✓ should create profile (screenshots) (4495ms)
✓ should create profile with full-name (1338ms)
✓ should create profile and set default (1341ms)
✓ should create profile with display name (1133ms)
✓ should create profile with contact-email (1599ms)
✓ should create profile with display-email (1449ms)
✓ should create profile with dob in YYYY-MM-DD (1286ms)
✓ should create profile with dob in MM-DD-YYYY (1242ms)
✓ should create profile with phone (1664ms)
✓ should create profile with occupation (1716ms)
✓ should create profile with location (1758ms)
✓ should create profile with company-name (1719ms)
✓ should create profile with website (1659ms)
errors
✓ invalid-first-name (1051ms)
✓ invalid-first-name-length (2237ms)
✓ invalid-last-name (1007ms)
✓ invalid-last-name-length (2206ms)
✓ invalid-contact-email (1816ms)
✓ invalid-display-email (1780ms)
✓ invalid-display-name (809ms)
✓ invalid-display-name-length (1922ms)
✓ invalid-dob (1931ms)
✓ invalid-phone (874ms)
✓ invalid-occupation (829ms)
✓ invalid-location (863ms)
✓ invalid-company-name (856ms)
✓ invalid-website (849ms)
/account/create-reset-code
view
✓ should present the form (495ms)
submit
✓ should create reset code (screenshots) (2682ms)
errors
✓ invalid-secret-code (915ms)
✓ invalid-secret-code-length (1866ms)
/account/delete-account-complete
view
✓ should present 3 days remaining message (1505ms)
✓ should present 7 days remaining message (1475ms)
✓ should present instant deletion message (1488ms)
✓ should present instant delete message (screenshots) (2621ms)
/account/delete-account
view
✓ should present the form (569ms)
submit
✓ should mark account deleted (screenshots) (2694ms)
errors
✓ invalid-password (1120ms)
/account/delete-profile
before
✓ should bind data (73ms)
exceptions
✓ invalid-profileid (38ms)
✓ invalid-profile (39ms)
✓ invalid-account (104ms)
view
✓ should present the form (500ms)
submit
✓ should delete profile (screenshots) (4045ms)
/account/delete-reset-code
before
✓ should bind data (44ms)
exceptions
✓ invalid-reset-codeid
✓ invalid-account (72ms)
view
✓ should present the form (492ms)
submit
✓ should delete reset code (screenshots) (3208ms)
/account/edit-profile
view
✓ should present the form (570ms)
✓ should have elements for full-name (496ms)
✓ should have elements for display-name (524ms)
✓ should have elements for contact-email (514ms)
✓ should have elements for display-email (526ms)
✓ should have elements for dob (541ms)
✓ should have elements for phone (495ms)
✓ should have elements for occupation (535ms)
✓ should have elements for location (519ms)
✓ should have elements for company-name (522ms)
✓ should have elements for website (500ms)
submit
✓ should update profile (screenshots) (7413ms)
✓ should update profile with full-name (1332ms)
✓ should update profile with display name (1173ms)
✓ should update profile with contact-email (1460ms)
✓ should update profile with display-email (1605ms)
✓ should update profile with dob in YYYY-MM-DD (1293ms)
✓ should update profile with dob in MM-DD-YYYY (1315ms)
✓ should update profile with phone (1707ms)
✓ should update profile with occupation (1712ms)
✓ should update profile with location (1649ms)
✓ should update profile with company-name (1707ms)
✓ should update profile with website (1664ms)
errors
✓ invalid-first-name (979ms)
✓ invalid-first-name-length (2106ms)
✓ invalid-last-name (934ms)
✓ invalid-last-name-length (2099ms)
✓ invalid-contact-email (1721ms)
✓ invalid-display-email (1761ms)
✓ invalid-display-name (825ms)
✓ invalid-display-name-length (1898ms)
✓ invalid-dob (1939ms)
✓ invalid-phone (858ms)
✓ invalid-occupation (870ms)
✓ invalid-location (840ms)
✓ invalid-company-name (815ms)
✓ invalid-website (821ms)
/account/end-all-sessions
view
✓ should present the form (524ms)
submit
✓ should generate a new session key (screenshots) (2022ms)
/account/end-session
before
✓ should bind data to req (48ms)
view
✓ should present the form (518ms)
submit
✓ should end the session (screenshots) (3282ms)
✓ should end current session (757ms)
/account
view
✓ should return page (screenshots) (1374ms)
✓ should not link to account preferences (1383ms)
✓ should link to account preferences (1395ms)
/account/organizations/accept-invitation
view
✓ should present the form (503ms)
✓ should exclude invalid profiles (586ms)
submit
✓ should accept valid existing profile (2303ms)
✓ should accept invitation and create profile (screenshots) (4570ms)
errors
✓ invalid-account (4049ms)
/account/organizations/create-invitation
exceptions
✓ invalid-account (113ms)
before
✓ should bind data to req (53ms)
view
✓ should present the form (534ms)
submit
✓ should create invitation (screenshots) (4535ms)
/account/organizations/create-organization
view
✓ should present the form (505ms)
submit
✓ should accept valid existing profile (1628ms)
✓ should create organization (screenshots) (3492ms)
errors
✓ invalid-organization-name (1174ms)
✓ invalid-organization-name-length (3457ms)
✓ invalid-organization-email (1905ms)
/account/organizations/delete-invitation
exceptions
✓ invalid-account (131ms)
before
✓ should bind data (64ms)
view
✓ should present the form (509ms)
submit
✓ should delete invitation (screenshots) (4079ms)
/account/organizations/delete-membership
exceptions
✓ invalid-account (150ms)
before
✓ should bind data to req (118ms)
view
✓ should present the form (579ms)
submit
✓ should delete membership (screenshots) (3447ms)
/account/organizations/delete-organization
exceptions
✓ invalid-account (131ms)
before
✓ should bind data to req (70ms)
view
✓ should present the form (484ms)
submit
✓ should delete organization (screenshots) (3967ms)
/account/organizations/edit-membership-profile
view
✓ should present the form (565ms)
✓ should have elements for full-name (578ms)
✓ should have elements for display-name (563ms)
✓ should have elements for contact-email (593ms)
✓ should have elements for display-email (598ms)
✓ should have elements for dob (568ms)
✓ should have elements for phone (578ms)
✓ should have elements for occupation (567ms)
✓ should have elements for location (581ms)
✓ should have elements for company-name (579ms)
✓ should have elements for website (560ms)
submit
✓ should update profile (screenshots) (6944ms)
✓ should update profile with full-name (1416ms)
✓ should update profile with display name (1333ms)
✓ should update profile with contact-email (1537ms)
✓ should update profile with display-email (1593ms)
✓ should update profile with dob in YYYY-MM-DD (1331ms)
✓ should update profile with dob in MM-DD-YYYY (1297ms)
✓ should update profile with phone (1712ms)
✓ should update profile with occupation (1743ms)
✓ should update profile with location (1724ms)
✓ should update profile with company-name (1726ms)
✓ should update profile with website (1699ms)
errors
✓ invalid-first-name (1063ms)
✓ invalid-first-name-length (2330ms)
✓ invalid-last-name (1082ms)
✓ invalid-last-name-length (2326ms)
✓ invalid-contact-email (1966ms)
✓ invalid-display-email (1939ms)
✓ invalid-display-name (929ms)
✓ invalid-display-name-length (2001ms)
✓ invalid-dob (1989ms)
✓ invalid-phone (950ms)
✓ invalid-occupation (938ms)
✓ invalid-location (933ms)
✓ invalid-company-name (944ms)
✓ invalid-website (924ms)
/account/organizations/edit-organization
exceptions
✓ should require owner (88ms)
before
✓ should bind data to req (74ms)
view
✓ should present the form (528ms)
submit
✓ should apply organization update (screenshots) (5011ms)
errors
✓ invalid-organization-name (1537ms)
✓ invalid-organization-name-length (2042ms)
✓ invalid-organization-email (1144ms)
/account/organizations/index
before
✓ should bind data to req (122ms)
view
✓ should have row for each organization (521ms)
✓ should have row for each membership (screenshots) (1463ms)
/account/organizations/invitation
before
✓ should require owner (102ms)
✓ should bind data to req (65ms)
view
✓ should have row for invitation (screenshots) (3754ms)
/account/organizations/membership
before
✓ should reject non-member (157ms)
✓ should bind data to req (117ms)
view
✓ should have row for membership (screenshots) (2460ms)
✓ should show profile fields if data exists (3168ms)
/account/organizations/memberships
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
✓ should show profile fields if data exists (4528ms)
/account/organizations/organization-invitations
before
✓ should require owner (112ms)
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/organizations/organization-memberships
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/organizations/organization
before
✓ should reject non-member (95ms)
✓ should bind data to req (129ms)
view
✓ should have row for organization (screenshots) (2782ms)
/account/organizations/organizations
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/organizations/revoke-membership
exceptions
✓ invalid-account (110ms)
before
✓ should bind data to req (114ms)
view
✓ should present the form (567ms)
submit
✓ should delete membership (screenshots) (4983ms)
/account/organizations/transfer-organization
exceptions
✓ invalid-account (106ms)
before
✓ should bind data to req (109ms)
view
✓ should present the form (594ms)
submit
✓ should transfer ownership (screenshots) (4078ms)
/account/profile
before
✓ should bind data to req
view
✓ should present the profile table (screenshots) (2596ms)
✓ should show fields if data exists (4258ms)
/account/profiles
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
✓ should show fields if data exists (4422ms)
/account/register
view
✓ should present the form (356ms)
✓ should disable the form (379ms)
✓ should have elements for full-name (389ms)
✓ should have elements for contact-email (359ms)
✓ should have elements for display-email (359ms)
✓ should have elements for dob (372ms)
✓ should have elements for phone (372ms)
✓ should have elements for occupation (376ms)
✓ should have elements for location (373ms)
✓ should have elements for company-name (375ms)
✓ should have elements for website (373ms)
submit
✓ should create new account with full name (6619ms)
✓ should create new profile with contact email (6924ms)
✓ should create new profile with display email (6903ms)
✓ should create new profile with display name (6465ms)
✓ should create new profile with dob in YYYY-MM-DD (6537ms)
✓ should create new profile with dob in MM-DD-YYYY (6550ms)
✓ should create new profile with phone (6997ms)
✓ should create new profile with occupation (7010ms)
✓ should create new profile with location (6834ms)
✓ should create new profile with company-name (6866ms)
✓ should create new profile with website (6904ms)
✓ should create 20-minute session (6104ms)
✓ should create account (screenshots) (8459ms)
errors
✓ invalid-username (5405ms)
✓ invalid-username-length (5430ms)
✓ invalid-password (5406ms)
✓ invalid-password-length (5217ms)
✓ invalid-confirm (5529ms)
✓ invalid-first-name (6342ms)
✓ invalid-first-name-length (12893ms)
✓ invalid-last-name (6313ms)
✓ invalid-last-name-length (12685ms)
✓ invalid-contact-email (12342ms)
✓ invalid-display-email (12431ms)
✓ invalid-display-name (6153ms)
✓ invalid-display-name-length (12589ms)
✓ invalid-dob (12604ms)
✓ invalid-phone (6155ms)
✓ invalid-occupation (6129ms)
✓ invalid-location (6190ms)
✓ invalid-company-name (6132ms)
✓ invalid-website (6039ms)
/account/reset-account
view
✓ should present the form (350ms)
submit
✓ should reset session key (6819ms)
✓ should reset code last used (6799ms)
✓ should sign in (screenshots) (11221ms)
errors
✓ invalid-username (5615ms)
✓ invalid-secret-code (5599ms)
✓ invalid-new-password (5529ms)
✓ invalid-new-password-length (5359ms)
✓ invalid-confirm-password (5619ms)
✓ invalid-account (6816ms)
/account/reset-code
before
✓ should bind data to req (64ms)
view
✓ should present the reset code table (screenshots) (2055ms)
/account/reset-codes
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/restore-account
view
✓ should present the form (470ms)
submit
✓ should unset account deleted (screenshots) (10621ms)
errors
✓ invalid-username (5393ms)
✓ invalid-password (5352ms)
✓ invalid-account (5718ms)
/account/session
before
✓ should bind data to req
view
✓ should present the session table (screenshots) (1863ms)
/account/sessions
before
✓ should bind data to req
✓ should exclude ended sessions (521ms)
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/account/set-default-profile
before
✓ should bind data to req (56ms)
view
✓ should present the form (486ms)
submit
✓ should set the profile as default (screenshots) (3782ms)
/account/signin
view
✓ should present the form (331ms)
submit
✓ should create session expiring in 20 minutes as default (5949ms)
✓ should create session expiring in 20 minutes (6013ms)
✓ should create session expiring in 8 hours (12157ms)
✓ should create session expiring in 30 days (6112ms)
✓ should sign in (screenshots) (8393ms)
errors
✓ invalid-username (4986ms)
✓ invalid-password (5721ms)
/account/signout-complete
view
✓ should sign out (screenshots) (1591ms)
/account/signout
view
✓ should end the session (630ms)
✓ should redirect to signout complete page (587ms)
✓ should signout (screenshots) (1527ms)
/account/verify
view
✓ should present the form (469ms)
submit
✓ should mark session as verified (6013ms)
✓ should verify session (screenshots) (10886ms)
errors
✓ invalid-username (5065ms)
✓ invalid-password (5741ms)
/administrator/account-profiles
before
✓ should bind data to req
view
✓ should present the profiles table (screenshots)
✓ should return one page
✓ should change page size
✓ should change offset
/administrator/account-reset-codes
before
✓ should bind data to req
view
✓ should present the reset codes table (screenshots)
✓ should return one page
✓ should change page size
✓ should change offset
/administrator/account-sessions
before
✓ should bind data to req
view
✓ should present the sessions table (screenshots)
✓ should return one page
✓ should change page size
✓ should change offset
/administrator/account
before
✓ should bind data to req (70ms)
view
✓ should present the account table (screenshots) (1875ms)
✓ should present the profile table (510ms)
✓ should present the sessions table (536ms)
✓ should hide empty reset codes table (572ms)
✓ should present a populated reset codes table (510ms)
/administrator/accounts
before
✓ should bind data to req
view
✓ should present the accounts table (screenshots)
✓ should return one page
✓ should change page size
✓ should change offset
/administrator/administrators
before
✓ should bind data to req
view
✓ should present the administrators table (screenshots)
✓ should return one page
✓ should change page size
✓ should change offset
/administrator/assign-administrator
before
✓ should bind data to req (54ms)
view
✓ should present the form (505ms)
submit
✓ should apply account update (screenshots) (3195ms)
/administrator/create-reset-code
before
✓ should bind data to req (59ms)
view
✓ should present the form (487ms)
submit
✓ should create reset code (screenshots) (3732ms)
errors
✓ invalid-secret-code (889ms)
✓ invalid-secret-code-length (1864ms)
/administrator/delete-account
exceptions
✓ should reject invalid accountid
before
✓ should bind data to req (63ms)
view
✓ should present the form (506ms)
submit
✓ should immediately delete (screenshots) (3580ms)
/administrator/delete-schedule
before
✓ should bind data to req (118ms)
view
✓ should present the deleted accounts table (screenshots) (1770ms)
✓ should return one page (627ms)
✓ should change page size (701ms)
✓ should change offset (628ms)
/administrator
view
✓ should return page (screenshots) (1407ms)
/administrator/organizations/index
before
✓ should bind data to req (197ms)
view
✓ should have row for each organization (screenshots) (1419ms)
✓ should have organization row for each membership (611ms)
/administrator/organizations/invitation
before
✓ should bind data to req (96ms)
view
✓ should have row for invitation (screenshots) (2636ms)
/administrator/organizations/invitations
before
✓ should bind data to req
view
✓ should return one page (screenshots)
✓ should change page size
✓ should change offset
/administrator/organizations/membership
before
✓ should bind data to req (150ms)
view
✓ should have row for membership (screenshots) (2703ms)