· 5 years ago · May 27, 2020, 04:42 PM
1
2> primero@ test /home/nidhi/Coding/primero
3> npm run test:run './app/javascript/**/*.unit.test.js'
4
5
6> primero@ test:run /home/nidhi/Coding/primero
7> NODE_ENV=test mocha --timeout 8000 "./app/javascript/**/*.unit.test.js"
8
9
10
11 <ActionDialog />
12 ✓ should render Dialog
13 ✓ should render DialogActions
14 ✓ should render DialogContent
15 ✓ should render DialogTitle
16 ✓ should render IconButton
17 ✓ should render Button
18 ✓ should accept valid props
19 ✓ should render DialogSubtitle with it's correct value
20 ✓ should not render DialogSubtitle because isn't passed in props (43ms)
21
22 <TitleWithClose />
23 ✓ should render DialogTitle
24 ✓ should render IconButton
25 ✓ should accept valid props
26 ✓ should render a title with subtitle
27 ✓ should render a title without subtitle
28
29 <TextWithClose /> - constants
30 ✓ should have known constant
31
32 <TextWithClose /> - index
33 ✓ should have known properties
34
35 <AgencyLogo />
36 ✓ renders agency logo from state
37
38 Application - Action Creators
39 ✓ should have known action creators
40 ✓ should check the 'fetchSystemSettings' action creator to return the correct object
41 ✓ should create an action to set the user to idle
42 ✓ should create an action to set the network status
43 ✓ should check the 'fetchSystemPermissions' action creator to return the correct object
44
45 Application - Actions
46 ✓ should have known actions
47
48 <Application /> - Constants
49 ✓ should have known properties
50 ✓ should have known RESOURCES properties
51
52 <Application /> - index
53 ✓ should have known properties
54
55 <Permission />
56 When User have permission
57 ✓ renders Permission
58 ✓ renders div
59 When User doesn't have permission
60 ✓ renders Permission
61 ✓ doesn't render children
62 When url is present
63 ✓ doesn't render children
64 When having multiple resources
65 ✓ renders children
66 When doesn't has the exact permissions
67 ✓ doesn't render children
68
69 Application - Reducers
70 ✓ should handle SET_USER_IDLE
71 ✓ should handle FETCH_SYSTEM_SETTINGS_SUCCESS
72 ✓ should handle NETWORK_STATUS
73 ✓ should handle FETCH_SYSTEM_PERMISSIONS_SUCCESS
74
75 Application - Selectors
76 selectAgencies
77 ✓ should return records
78 ✓ should return empty object when records empty
79 selectModules
80 ✓ should return records
81 ✓ should return empty object when records empty
82 selectLocales
83 ✓ should return records
84 ✓ should return empty object when records empty
85 selectUserIdle
86 ✓ should return weither user is idle
87 getReportingLocationConfig
88 ✓ should return the reporting location config
89 getSystemPermissions
90 ✓ should return the system permissions
91 getResourceActions
92 ✓ should return the resource actions
93 getEnabledAgencies
94 ✓ should return the enabled agencies
95 ✓ should return enabled agencies with the selected service
96 ✓ should return empty if there are no agencies with the selected service
97 ✓ should return empty if there are no enabled agencies
98
99 <ApprovalDetail /> - Component
100 ✓ render ApprovalDetail component
101 ✓ render a Grid
102 ✓ render a Box
103 ✓ render a DisplayData
104 ✓ renders component with valid props
105
106 Approvals - Detail - index
107 ✓ should have known exported properties
108
109 <ApprovalPanel /> - Component
110 ✓ render ApprovalPanel component
111 ✓ render a ExpansionPanels
112 ✓ render a ApprovalSummary
113 ✓ render a ApprovalSummary
114 ✓ renders component with valid props
115
116 Approvals - Panel - index
117 ✓ should have known exported properties
118
119 <ApprovalSummary /> - Component
120 ✓ render ApprovalSummary component
121 ✓ render a Grid
122 ✓ render a Chip
123 ✓ renders component with valid props
124
125 Approvals - Summary - index
126 ✓ should have known exported properties
127
128 <Approvals /> - Constants
129 ✓ should have known constant
130
131 <Approvals /> - Component
132 ✓ renders Approvals component
133 ✓ renders 4 ApprovalsPanel
134 ✓ renders component with valid props
135 When we don't have data
136 ✓ renders Approvals component
137 ✓ not renders ApprovalPanel only the title
138
139 Approvals - index
140 ✓ should have known exported properties
141
142 Approvals - namespace
143 ✓ should have known properties
144
145 <BarChart />
146 ✓ renders canvas with bar chart and description
147
148 <TableValues />
149 ✓ renders canvas values as table (42ms)
150
151 <BadgedIndicator />
152 ✓ renders a BadgedIndicator with a DashboardChip />
153 When data still loading
154 ✓ renders BadgedIndicator component
155 ✓ renders CircularProgress
156
157 <BadgedIndicator /> - Index
158 ✓ should have known constant
159
160 <DashboardTable />
161 ✓ renders a MUIDataTable />
162 ✓ renders a MUIDataTable with valid Props
163
164 <Dashboard /> - index
165 ✓ should have known properties
166
167 <OverviewBox />
168 ✓ renders a component/>
169 when withTotal props is false
170 ✓ renders the header without total/>
171 When data still loading
172 ✓ renders BadgedIndicator component
173 ✓ renders CircularProgress
174
175 <PieChart />
176 ✓ renders a PieChart />
177
178 <PieChart /> - Constants
179 ✓ should have known constant
180
181 <PieChart /> - index
182 ✓ should have known properties
183
184 <Dashboard /> - Helpers
185 toData1D
186 when isManager is false
187 ✓ should convert data to string
188 when isManager is true
189 ✓ should convert data to string without 'or' param
190 when a filter has multiple values
191 ✓ should convert data to string
192
193 components/disable-offline - DisableOffline
194 ✓ renders element in offline state if offline
195 ✓ renders element in online state if online
196
197 components/disable-offline/components/offline-alert - OfflineAlert
198 ✓ renders alert if offline
199 ✓ does not render alert if online
200
201 <DisplayData />
202 ✓ should render label and value props
203 ✓ should render label prop and default value if any value is passed as a prop
204
205 <DisplayData /> - Constants
206 ✓ should have known constant
207
208 <DisplayData /> - Index
209 ✓ should have known constant
210
211 <Flagging /> - Action Creators
212 ✓ should have known action creators
213 ✓ should check the 'fetchFlags' action creator to return the correct object
214 ✓ should check the 'unFlag' action creator to return the correct object
215 ✓ should check the 'addFlag' action creator to return the correct object
216
217 <Flagging /> - Component
218 ✓ renders Flagging form
219 ✓ renders FlagDialog
220
221 <Flagging /> - Reducers
222 ✓ should handle FETCH_FLAGS_SUCCESS
223 ✓ should handle ADD_FLAG_SUCCESS
224 ✓ should handle UNFLAG_SUCCESS
225
226 <Flagging /> - Selectors
227 selectFlags
228 ✓ should return list of flags
229 ✓ should return empty list when no flags
230
231 <Form>
232 ✓ renders form based on formSection props (142ms)
233 ✓ should set form with initial values (75ms)
234 ✓ should not submit form when invalid (201ms)
235 ✓ should submit form when valid (243ms)
236
237 <Form />/components/<ActionsMenu /> - constants
238 ✓ should have known properties
239
240 <Form /> - components/<ActionsMenu />
241 ✓ renders ActionMenu with where conditions are true or not defined
242
243 <Form />/components/<ActionsMenu /> - index
244 ✓ should have known properties
245
246 <Form />/components - Constants
247 ✓ should have known properties
248
249 <Form /> - components/<FormAction />
250 ✓ renders a Fab component
251 ✓ renders a Fab with a CircularProgress component, when savingRecord it's true and it's not a cancel button
252
253 <Form /> - components/<FormSectionField />
254 ✓ renders a text field
255 ✓ renders a textarea field (38ms)
256 ✓ renders an error field
257 ✓ does not render an error field
258 ✓ renders a radio button field (39ms)
259 ✓ renders a toggle field
260
261 <Form /> - components/<FormSectionTitle />
262 ✓ should not render title if name not set on form section
263 ✓ should render title if name set on form section
264
265 <Form /> - components/<FormSection />
266 ✓ renders a form section with title and fields
267 ✓ renders a form section with checkErrors prop
268
269 <Form /> - Constants
270 ✓ should have known properties
271
272 <Form /> - fields/<CheckBoxGroup />
273 ✓ renders checkbox inputs
274
275 <Form /> - fields/<SelectInput />
276 ✓ renders checkbox inputs
277 ✓ renders help text
278 ✓ renders errors
279 ✓ renders required indicator
280
281 <Form />/fields - Constants
282 ✓ should have known properties
283
284 <Form /> - fields/<ErrorField />
285 ✓ renders a error field if there are errors in the forms
286 ✓ does not render the error field if the form doesn't have errors
287
288 <Label />
289 ✓ renders the Label
290
291 <Form /> - fields/<SelectInput />
292 ✓ renders select input
293 ✓ renders help text
294 ✓ renders errors
295 ✓ renders required indicator
296 ✓ should autoFocus when prop set
297
298 <Form /> - fields/<SwitchInput />
299 ✓ renders switch input
300 ✓ renders help text
301 ✓ renders errors
302
303 <Form /> - fields/<TextInput />
304 ✓ renders text input
305 ✓ renders textarea (58ms)
306 ✓ renders help text
307 ✓ renders errors
308 ✓ renders required indicator
309 ✓ should autoFocus when prop set
310
311 <Form /> - index
312 ✓ should have known properties
313
314 <Form /> - Utils
315 ✓ should have known properties
316
317 touchedFormData()
318 ✓ returns touched data
319
320 whichFormMode()
321 ✓ should build form state object
322
323 <Form /> - Options
324 whichOptions()
325 ✓ returns lookups if optionStringsSource set
326 ✓ returns array of options if options is an array
327 ✓ returns array of options if options is an object
328 optionText()
329 ✓ returns display text if object
330 ✓ returns display name if object
331 ✓ returns display name if string
332 ✓ returns display text if string
333
334 <IndexFilters /> - Action Creators
335 ✓ should have known action creators
336 ✓ should check the 'setFilters' action creator to return the correct object, when applying filters
337 ✓ checks 'applyFilters' action creator returns the correct object, when applying filters/fetching records
338
339 <IndexFitlers>
340 ✓ renders search bar (140ms)
341 ✓ renders search bar with valid props (106ms)
342 ✓ renders MoreSection filters (114ms)
343 ✓ renders FilterActions filters (109ms)
344
345 <IndexFilters />/<Actions />
346 ✓ renders 3 action buttons
347 ✓ triggers handleSave()
348 ✓ triggers handleClear()
349 ✓ renders 'Apply' button
350 when handleSave is not part of the props
351 ✓ should render two buttons
352 ✓ should render 'Apply' button
353 ✓ should render 'Clear' button
354 ✓ should not render 'Save' button
355
356 <IndexFilters> - Components - Constants
357 ✓ should have known constant
358
359 <CheckboxFilter>
360 ✓ renders panel
361 ✓ renders checkbox inputs
362 ✓ renders checkbox with valid pros in the more section (41ms)
363 ✓ should have not call setMoreSectionFilters if mode.secondary is false when changing value (58ms)
364
365 <IndexFilters /> - filter-types/checkbox-filter/constants
366 ✓ should have known constant
367
368 <IndexFilters /> - filter-types/checkbox-filter/index
369 ✓ should have known properties
370
371 <ChipsFilter>
372 ✓ renders panel (43ms)
373 ✓ renders chip inputs (39ms)
374 ✓ renders chip as secondary filter, with valid pros in the more section (44ms)
375 ✓ should have not call setMoreSectionFilters if mode.secondary is false when changing value (78ms)
376
377 <IndexFilters /> - filter-types/chips-filter/constants
378 ✓ should have known constant
379
380 <IndexFilters /> - filter-types/chips-filter/index
381 ✓ should have known properties
382
383 <DateFilter>
384 ✓ renders panel (77ms)
385 ✓ renders 2 DatePicker component (40ms)
386 ✓ renders 2 DateTimePicker component if we pass the prop dateIncludeTime = true
387 ✓ renders date-filter as secondary filter, with valid pros in the more section (45ms)
388 ✓ should have not call setMoreSectionFilters if mode.secondary is false when changing value (82ms)
389
390 <IndexFilters /> - filter-types/date-filter/constants
391 ✓ should have known constant
392
393 <IndexFilters /> - filter-types/date-filter/index
394 ✓ should have known properties
395
396 <Search /> index-filters/components/filter-types/search
397 ✓ renders IconButton
398 ✓ renders SearchIcon
399 ✓ renders InputBase
400
401 <SelectFilter>
402 ✓ renders panel (50ms)
403 ✓ renders select as secondary filter, with valid pros in the more section (56ms)
404 ✓ should have not call setMoreSectionFilters if mode.secondary is false when changing value (96ms)
405
406 <IndexFilters /> - filter-types/select-filter/constants
407 ✓ should have known constant
408
409 <IndexFilters /> - filter-types/select-filter/index
410 ✓ should have known properties
411
412 <SwitchFilter>
413 ✓ renders panel
414 ✓ renders switch
415 ✓ renders switch as secondary filter, with valid pros in the more section
416 ✓ should have not call setMoreSectionFilters if mode.secondary is false when changing value (38ms)
417
418 <IndexFilters /> - filter-types/switch-filter/constants
419 ✓ should have known constant
420
421 <IndexFilters /> - filter-types/switch-filter/index
422 ✓ should have known properties
423
424 <ToggleFilter>
425 ✓ renders panel (62ms)
426 ✓ renders toggle buttons (44ms)
427 ✓ renders select as secondary filter, with valid pros in the more section (49ms)
428 ✓ should have not call setMoreSectionFilters if mode.secondary is false when changing value (75ms)
429
430 <IndexFilters /> - filter-types/toggle-filter/constants
431 ✓ should have known constant
432
433 <IndexFilters /> - filter-types/toggle-filter/index
434 ✓ should have known properties
435
436 <IndexFitlers>/components/filter-types/utils
437 ageParser()
438 ✓ returns age range with param value with a dash
439 ✓ returns age range with param value with a dash
440 optionText()
441 ✓ returns display_text from option object
442 ✓ returns display_name from option object
443 ✓ returns display_name locale object from option object
444 ✓ returns display_name locale object from option object
445 whichOptions()
446 ✓ returns i18n options
447 ✓ returns array of options
448 ✓ returns lookups
449 handleMoreFiltersChange()
450 ✓ handles basic input from array values
451 ✓ handles basic input from boolean value
452 resetSecondaryFilter()
453 ✓ should call setMoreSectionFilters if secondary is true
454 ✓ should not call setMoreSectionFilters if secondary is false
455 setMoreFilterOnPrimarySection()
456 ✓ should call setValues if fieldName is included on filters
457 ✓ should not call setValues if fieldName isn't included on filters
458
459 <IndexFilters />/filter-types/value-handlers
460 handleFilterChange()
461 ✓ handles basic inputs
462 ✓ handles checkboxes with array value
463 ✓ handles checkboxes with object value
464 valueParser()
465 ✓ returns parsed age value
466 ✓ returns passed value by default
467 getFilterProps()
468 ✓ returns default properties from filter object
469 ✓ returns properties for my_cases filter from filter object
470 ✓ returns properties for last_updated_at filter from filter object
471
472 <MoreSection>
473 ✓ renders MoreSection filters (72ms)
474 ✓ renders valid props for MoreSection component (40ms)
475 ✓ renders valid props for rendered filters (43ms)
476
477 <IndexFilters />/<Panel />
478 ✓ renders children
479 ✓ opens if field has value (40ms)
480 ✓ closes if field has value on click (43ms)
481 ✓ resets field value (46ms)
482 ✓ renders valid props for Panel component
483
484 <IndexFilters /> - Constants
485 ✓ should have known constant
486
487 <IndexFilters /> - index
488 ✓ should have known properties
489
490 <IndexFilters /> - Reducers
491 ✓ should handle SET_FILTERS
492
493 <IndexFilters /> - Selectors
494 getFiltersValuesByRecordType
495 ✓ should return list of filters
496 ✓ should return empty list
497 getFiltersValuesByRecordType
498 ✓ should return list of applied filters
499 ✓ should return empty map
500
501 <IndexFilters /> - Utils
502 compactFilters()
503 ✓ returns compacted object
504
505 <ToggleIconCell /> - Component
506 ✓ renders ToggleIconCell component
507 ✓ renders Jewel when alert_count is present
508 when the record has flag
509 ✓ render the Flag component with number of flags
510
511 <IndexTable />
512 ✓ should render LoadingIndicator
513 ✓ should render MUIDataTable
514 ✓ should change sort order to descending if user clicks on a column (45ms)
515 When data still loading
516 ✓ renders IndexTable component
517 ✓ renders CircularProgress
518 when records are selected
519 ✓ renders CustomToolbarSelect component
520 ✓ renders Typography component
521 when no records are selected
522 ✓ should not render CustomToolbarSelect component
523 when selectableRows options is none
524 ✓ should not render any checkbox
525
526 <CustomToolbarSelect />
527 ✓ renders Typography
528 when all records of the page are selected
529 ✓ renders ButtonBase with a label to select all records
530 when all records are selected
531 ✓ renders ButtonBase with a label to clear selection
532 when some records are selected
533 ✓ should not renders ButtonBase
534
535 <CustomToolbarSelect /> - constants
536 ✓ should have known constant
537
538 <CustomToolbarSelect /> - index
539 ✓ should have known properties
540
541 <CustomToolbarSelect /> - utils
542 ✓ should return an object with all records selected
543
544 <RecordList /> - Selectors
545 selectRecords
546 ✓ should return records
547 ✓ should return empty object when records empty
548 getFilters
549 ✓ should return filters
550 ✓ should return empty object when filters empty
551 selectMeta
552 ✓ should not find removed function selectMeta
553 getLoading
554 ✓ should return loading status
555 ✓ should return false by default
556
557 <Jewel />
558 ✓ renders canvas
559
560 <AppLayout />
561 if hasUserPermissions is true
562 ✓ renders navigation
563 ✓ navigates to incidents list
564 if hasUserPermissions is false
565 ✓ renders CircularProgress
566
567 <LoginLayout />
568 ✓ renders default PrimeroModule logo
569 ✓ renders a module logo
570 ✓ renders an agency logo
571 ✓ renders an TranslationsToggle component
572
573 <Lightbox />
574 ✓ should render clickable button to trigger lightbox
575 ✓ should open/close lightbox
576 ✓ should render image in lightbox
577 ✓ should return false if no image available
578
579 <ListIcon />
580 ✓ renders correct icon
581
582 <LoadingIndicator />
583 ✓ should render LoadingIndicator
584 ✓ should no render CircularProgress when has data
585 ✓ should render Children when has data
586 When data still loading
587 ✓ renders LoadingIndicator component
588 ✓ renders CircularProgress
589 ✓ doesn't render children
590 When doesn't has data
591 ✓ renders LoadingIndicator component
592 ✓ renders CircularProgress
593 ✓ doesn't render children
594 ✓ render a message no data found
595
596 <ModuleLogo />
597 ✓ renders a default primero module logo
598 ✓ renders a primero module logo from props
599
600 <Nav /> - Action Creators
601 ✓ should have known action creators
602 ✓ should check the 'fetchAlerts' action creator to return the correct object
603
604 <Nav /> - Actions
605 ✓ should have known properties
606
607 <Nav />
608 ✓ renders a module logo
609 ✓ renders an agency logo
610 ✓ renders translation toggle
611 nav links
612 ✓ renders home link
613 ✓ renders tasks link
614 ✓ renders cases link
615 ✓ renders incidents link
616 ✓ renders tracing requests link
617 ✓ renders reports link
618 ✓ renders exports link
619 when have restricted permission
620 ✓ renders cases link
621 ✓ doesn't renders export link
622 when component is rendered
623 ✓ should fetch alerts
624
625 <Nav /> - Reducers
626 ✓ should handle FETCH_ALERTS
627
628 <Nav /> - Selectors
629 selectAlerts
630 ✓ should return a list of selectAlerts
631
632 <NotImplemented />
633 when not passing a custom text
634 ✓ renders default text
635 when passing a custom text
636 ✓ renders custom text
637
638 <Notifier/> - constants
639 ✓ should have known properties
640 ✓ should have known SNACKBAR_VARIANTS properties
641
642 <Notifier />- index
643 ✓ should have known properties
644
645 <AgenciesForm /> - Action Creators
646 ✓ should have known action creators
647 ✓ should check that 'fetchAgency' action creator returns the correct object
648 ✓ should check that 'saveAgency' action creator returns the correct object
649
650 <AgenciesForm /> - Actions
651 ✓ should have known properties
652
653 <AgenciesForm /> - Constants
654 ✓ should have known properties
655
656 <AgencyForm />
657 ✓ renders record form
658 ✓ renders heading with action buttons
659 ✓ renders submit button with valid props
660
661 <AgenciesForm /> - Reducers
662 ✓ should handle FETCH_AGENCY_STARTED
663 ✓ should handle FETCH_AGENCY_FAILURE
664 ✓ should handle FETCH_AGENCY_SUCCESS
665 ✓ should handle FETCH_AGENCY_FINISHED
666 ✓ should handle CLEAR_SELECTED_AGENCY
667 ✓ should handle SAVE_AGENCY_STARTED
668 ✓ should handle SAVE_AGENCY_FINISHED
669
670 <AgenciesForm /> - Selectors
671 getAgency
672 ✓ should return selected agency
673 ✓ should return empty object when selected agency empty
674 getErrors
675 ✓ should return errors
676 ✓ should return false when errors empty
677 getServerErrors
678 ✓ should return server errors
679 ✓ should return empty object when no server errors
680 getSavingRecord
681 ✓ should return server errors
682 ✓ should return empty object when no server errors
683
684 <AgenciesForm /> - Helpers
685 ✓ localizeData should return the localized version of the field
686 ✓ translateFields should return the field with the current translation
687
688 <AgenciesList /> - Action Creators
689 ✓ should have known action creators
690 ✓ should check that 'fetchAgencies' action creator returns the correct object
691
692 <AgenciesList /> - Actions
693 ✓ should have known properties
694
695 <AgenciesList /> - Constants
696 ✓ should have known properties
697
698 <AgenciesList />
699 ✓ renders record list table
700 ✓ renders <AdminFilters /> component
701
702 <AgenciesList /> - Reducers
703 ✓ should handle AGENCIES_STARTED
704 ✓ should handle AGENCIES_SUCCESS
705 ✓ should handle AGENCIES_FAILURE
706 ✓ should handle AGENCIES_FINISHED
707
708 <AgenciesList /> pages/admin/agencies-list/utils
709 ✓ should return default filters for agencies-list
710
711 <AuditLogs /> - pages/admin/audit-logs/action-creators
712 ✓ should have known action creators
713 ✓ should check that 'fetchAuditLogs' action creator returns the correct object
714 ✓ should check that 'fetchPerformedBy' action creator returns the correct object
715 ✓ should check that 'setAuditLogsFilters' action creator returns the correct object
716
717 <AuditLogs /> - pages/admin/audit-logs/actions
718 ✓ should have known actions
719
720 <AuditLogs /> pages/admin/audit-logs/constants
721 ✓ should have known properties
722
723 <AuditLogs />
724 ✓ renders <PageHeading /> component
725 ✓ renders <IndexTable /> component
726 ✓ renders <Filters /> component
727
728 <AuditLogs /> - pages/admin/audit-logs/index
729 ✓ should have known properties
730
731 <AuditLogs /> - pages/admin/audit-logs/reducers
732 ✓ should handle FETCH_AUDIT_LOGS_FAILURE
733 ✓ should handle FETCH_AUDIT_LOGS_FINISHED
734 ✓ should handle FETCH_AUDIT_LOGS_STARTED
735 ✓ should handle FETCH_AUDIT_LOGS_SUCCESS
736 ✓ should handle FETCH_PERFORMED_BY_FAILURE
737 ✓ should handle FETCH_PERFORMED_BY_FINISHED
738 ✓ should handle FETCH_PERFORMED_BY_SUCCESS
739 ✓ should handle SET_AUDIT_LOGS_FILTER
740
741 <AuditLogs /> - pages/admin/audit-logs/selectors
742 getFilterUsers
743 ✓ should return list of users
744 ✓ should return empty list when no users
745
746 <AuditLogs /> - Helpers
747 with exposed properties
748 ✓ should have known methods
749 searchableUsers
750 ✓ should convert the data for DashboardTable
751 buildAuditLogsQuery
752 ✓ should convert the data for DashboardTable
753 getFilters
754 ✓ should convert the data for DashboardTable
755
756 <AdminFilters /> - pages/admin/components/filters/component
757 ✓ should render <FormContext /> component
758 ✓ should render <Actions /> component
759 ✓ should have valid props
760
761 <AdminFilters /> - pages/admin/components/filters/constants
762 ✓ should have known constant
763
764 <AdminFilters /> - pages/admin/components/filters/index
765 ✓ should have known properties
766
767 <Components /> - pages/admin/components/index
768 ✓ should have known properties
769
770 <ContactInformation /> - Action Creators
771 ✓ should have known action creators
772 ✓ should check that 'saveContactInformation' action creator returns the correct object
773
774 <ContactInformation /> - Actions
775 ✓ should have known properties
776
777 <ContactInformation /> - Constants
778 ✓ should have known constant
779
780 <ContactInformation /> - Reducers
781 ✓ should handle SAVE_CONTACT_INFORMATION_STARTED
782 ✓ should handle SAVE_CONTACT_INFORMATION_SUCCESS
783 ✓ should handle SAVE_CONTACT_INFORMATION_FINISHED
784
785 <AgenciesForm /> - Selectors
786 selectContactInformation
787 ✓ should return selected contactInformation
788 ✓ should be empty
789 selectSavingContactInformation
790 ✓ should return errors
791
792 <Admin />
793 ✓ renders the admin container
794
795 <FormsBuilder /> - Action Creators
796 ✓ should have known action creators
797 ✓ should check the 'clearSelectedForm' action creator to return the correct object
798 ✓ should check the 'saveForm' action creator to return the correct object
799
800 <FormBuilder /> - Actions
801 ✓ should have known properties
802
803 <FormsBuilder />
804 ✓ renders the Settings Tab
805 ✓ renders the Action Buttons
806
807 <FormBuilderActionButtons />
808 ✓ renders the FormBuilderActionButtons
809
810 <FormBuilder />/components/<FormBuilderActionButtons /> - Constants
811 ✓ should have known properties
812
813 pages/admin/<FormBuilder>/components/<FormSectionActionButtons/> - index
814 ✓ should have known properties
815
816 <FieldDialog />
817 ✓ should render the dialog
818
819 pages/admin/<FormBuilder />/components/<FieldDialog /> - Constants
820 ✓ should have known properties
821
822 pages/admin/<FormBuilder />/components/<FieldDialog />/forms/base - general
823 generalFields
824 ✓ should return the general fields
825 generalForm
826 ✓ should return the general form with default fields
827 ✓ should return the general form with passed fields
828
829 pages/admin/<FormBuilder />/components/<FieldDialog />/forms/basic - index
830 ✓ should have known properties
831
832 pages/admin/<FormBuilder />/components/<FieldDialog />/forms/base - options
833 optionsForm
834 ✓ should return the options form with default fields
835 ✓ should return the options form with passed fields
836
837 pages/admin/<FormBuilder />/components/<FieldDialog />/forms/basic - validation schema
838 ✓ should return the default validation schema
839 ✓ should return the overrided validation schema
840
841 pages/admin/<FormBuilder />/components/<FieldDialog />/forms/basic - visibility
842 visibilityFields
843 ✓ should return the options fields
844 visibilityForm
845 ✓ should return the visibility form with default fields
846 ✓ should return the options form with passed fields
847
848 pages/admin/<FormBuilder />/components/<FieldDialog />/forms - index
849 ✓ should have known properties
850
851 pages/admin/<FormBuilder />/components/<FieldDialog /> - index
852 ✓ should have known properties
853
854 getFormField
855 ✓ should return the form sections
856
857 <FieldListItem />
858 when the field is editable
859 ✓ should render the field without a key icon
860 ✓ should render a enabled show? checkbox
861 when the field is not editable
862 ✓ should render the field with an key icon
863 ✓ should render a disabled show? checkbox
864
865 <FormBuilder />/components/<FieldListItem /> - Constants
866 ✓ should have known properties
867
868 pages/admin/<FormBuilder>/components/<FieldListItem/> - index
869 ✓ should have known properties
870
871 <FieldsList />
872 ✓ should render the list items
873
874 <FormBuilder />/components/<FieldsList /> - Constants
875 ✓ should have known properties
876
877 pages/admin/<FormBuilder>/components/<FieldsList/> - index
878 ✓ should have known properties
879
880 pages/admin/<FormBuilder>/components - index
881 ✓ should have known properties
882
883 <TabPanel />
884 ✓ renders the TabPanel
885
886 <FormBuilder />/components/<TabPanel /> - Constants
887 ✓ should have known properties
888
889 pages/admin/<FormBuilder>/components/<TabPanel/> - index
890 ✓ should have known properties
891
892 getFiedListItemTheme
893 ✓ should return the overrides for the theme
894
895 <FormBuilder /> - Constants
896 ✓ should have known properties
897
898 pages/admin/<FormBuilder>/forms
899 ✓ returns the forms
900
901 pages/admin/<FormBuilder> - index
902 ✓ should have known properties
903
904 <FormsBuilder /> - Reducers
905 ✓ should handle SAVE_FORM_FAILURE
906 ✓ should handle SAVE_FORM_STARTED
907 ✓ should handle SAVE_FORM_FINISHED
908 ✓ should handle CLEAR_SELECTED_FORM
909 ✓ should handle FETCH_FORM_FAILURE
910 ✓ should handle FETCH_FORM_FINISHED
911 ✓ should handle FETCH_FORM_STARTED
912 ✓ should handle FETCH_FORM_SUCCESS
913 REORDER_FIELDS
914 ✓ should handle a field going down in the order
915 ✓ should handle a field going up in the order
916 ✓ should handle a fields with the same order
917
918 <FormsBuilder /> - Selectors
919 ✓ should know the selectors
920 getSavingRecord
921 ✓ should return the correct value
922 getSelectedForm
923 ✓ should return the correct value
924
925 <FormBuilder /> - utils
926 convertToFieldsObject
927 ✓ should return the fields as a single object
928 convertToFieldsArray
929 ✓ should return the fields as an array
930 getOrderDirection
931 ✓ should return the difference of order values
932 affectedOrderRange
933 order is greater than current order
934 ✓ should return the range of orders to be changed
935 order is less than current order
936 ✓ should return the range of orders to be changed
937 order is equal to current order
938 ✓ should return an empty range of orders to be changed
939 buildOrderUpdater
940 order is greater than current order
941 ✓ should return a function to decrease the order
942 order is less than current order
943 ✓ should increase the order
944
945 <FormsList /> - Action Creators
946 ✓ should have known action creators
947 ✓ should check the 'enableReorder' action creator returns the correct object
948 ✓ should check the 'reorderFormGroups' action creator returns the correct object
949 ✓ should check the 'reorderFormSections' action creator returns the correct object
950 ✓ should check the 'reorderedForms' action creator returns the correct object
951 ✓ should check the 'saveFormsReorder' action creator returns the correct object
952 ✓ should check the 'clearFormsReorder' action creator returns the correct object
953
954 <FormsList /> - Actions
955 ✓ should have known actions
956
957 <FormsList />
958 ✓ renders <PageHeading />
959 ✓ renders <FormFilters />
960 ✓ renders form sections
961 when there are no records
962 ✓ renders <FormFilters/>
963 ✓ does not renders form sections
964 when there reorder is enabled
965 ✓ renders the <RorderActions />
966 ✓ disable the <FormFilters/>
967
968 <FormsList />/components/<DragIndicator />
969 ✓ renders icon
970 ✓ renders passes through props to icon
971
972 <FormsList />/components/<FilterInput />
973 ✓ renders toggle input with options
974 - responds to onChange with passed function
975
976 <FormsList />/components/<FiltersExpansionPanel />
977 - renders <ExpansionPanel /> with name
978 - renders <FilterInput />
979
980 <FormsList />/components/<FormFilters />
981 ✓ renders clear button
982 - clear button responds to onClick from pass function
983 ✓ renders <FiltersExpansionPanel />
984
985 <FormsList />/components/<FormGroup />
986 ✓ renders <ExpansionPanel />
987 ✓ renders <DragIndicator />
988 ✓ renders children
989 ✓ renders panel name
990
991 <FormsList />/components/<FormSection />
992 ✓ renders <Droppable/>
993 ✓ renders <TableRow/>
994
995 pages/admin/<FormList>/components - index
996 ✓ should have known properties
997
998 <FormsList />/components/<ReorderActions />
999 ✓ renders <Dialog/>
1000 ✓ renders the dialog buttons
1001
1002 pages/admin/<FormList>/components/<ReorderActions> - Constants
1003 ✓ should have known properties
1004
1005 pages/admin/<FormList>/components/<ReorderActions> - index
1006 ✓ should have known properties
1007
1008 <FormsList />/components/<TableRow />
1009 ✓ renders Draggable component
1010 ✓ renders <DragIndicator />
1011 ✓ renders row information
1012
1013 <FormList /> - Constants
1014 ✓ should have known properties
1015 ✓ should have known properties for ORDER_TYPE
1016
1017 pages/admin/<FormList> - index
1018 ✓ should have known properties
1019
1020 <FormsList /> - Reducers
1021 - should handle RECORD_FORMS_SUCCESS
1022 ✓ should handle RECORD_FORMS_STARTED
1023 ✓ should handle RECORD_FORMS_FINISHED
1024 ✓ should handle CLEAR_FORMS_REORDER
1025 ✓ should handle ENABLE_REORDER
1026 ✓ should handle REORDER_FORM_GROUPS
1027 ✓ should handle REORDER_FORM_SECTIONS
1028 ✓ should handle SAVE_FORMS_REORDER_STARTED
1029 ✓ should handle SAVE_FORMS_REORDER_SUCCESS
1030 ✓ should handle SAVE_FORMS_REORDER_FINISHED
1031 ✓ should handle SET_REORDERED_FORMS
1032
1033 <FormList /> - Selectors
1034 getFormSectionsByFormGroup
1035 ✓ should return filtered form sections by group
1036 ✓ should filter out subforms
1037 ✓ should return empty object when form sections empty
1038 getFormSections
1039 ✓ should return the filtered form sections
1040 getIsLoading
1041 ✓ should return true if the forms are loading
1042 getReorderIsLoading
1043 ✓ should return true if the reorder is loading
1044 getReorderErrors
1045 ✓ should return an array of errors
1046 getReorderPendings
1047 ✓ should return an array of pending ids to be reordered
1048 getReorderEnabled
1049 ✓ should return if the reorder functionality is enabled
1050
1051 <FormsList /> - Utils
1052 getItemStyle
1053 ✓ should return the correct object
1054 getListStyle
1055 ✓ should return the correct object
1056 buildOrderUpdater
1057 ✓ should return a function that updates the order of a element
1058 reorderElems
1059 ✓ should return the correct object
1060 formSectionFilter
1061 ✓ should return true if form section matches the filter
1062 getFormGroupId
1063 ✓ should return the correct formGroupId
1064 filterFormSections
1065 ✓ should return the form sections that matches the filter
1066 setInitialFormOrder
1067 ✓ should return the correct order
1068 setInitialGroupOrder
1069 ✓ should return the correct order
1070
1071 pages/admin - index
1072 ✓ should have known properties
1073
1074 <LookupsForm /> - action-creators
1075 ✓ should have known action creators
1076 ✓ should check that 'fetchLookup' action creator returns the correct object
1077 ✓ should check that 'saveLookup' action creator returns the correct object
1078
1079 <LookupsForms /> - actions
1080 ✓ should have known properties
1081
1082 <DraggableRow /> - components/draggable-row/component
1083 - renders Draggable component
1084 - renders FormSectionField component
1085
1086 <DraggableRow /> - components/draggable-row/constants
1087 ✓ should have known properties
1088
1089 <DraggableRow /> - components/draggable-row/index
1090 ✓ should have known properties
1091
1092 <Form /> - components/form/component
1093 ✓ renders FormContext component
1094 ✓ renders FormSectionField component
1095 ✓ renders DragDropContext component
1096 ✓ renders Droppable component
1097
1098 <Form /> - components/form/constants
1099 ✓ should have known properties
1100
1101 <Form /> - components/form/index
1102 ✓ should have known properties
1103
1104 <HeadersValues /> - components/header-values/component
1105 ✓ should render 5 div
1106 ✓ should render english text column
1107 ✓ should render english text column
1108 ✓ should render english text column
1109
1110 <HeadersValues /> - components/header-values/constants
1111 ✓ should have known properties
1112
1113 <HeadersValues /> - components/header-values/index
1114 ✓ should have known properties
1115
1116 <LookupForms /> - components/index
1117 ✓ should have known properties
1118
1119 <LookupForms /> - constants
1120 ✓ should have known properties
1121
1122 <LookupsForm /> - container
1123 ✓ renders LookupForm component
1124 ✓ renders heading with two FormAction components
1125
1126 <LookupForms /> - index
1127 ✓ should have known properties
1128
1129 <LookupForm /> - reducers
1130 ✓ should handle CLEAR_SELECTED_LOOKUP
1131 ✓ should handle FETCH_LOOKUP_FAILURE
1132 ✓ should handle FETCH_LOOKUP_FINISHED
1133 ✓ should handle FETCH_LOOKUP_STARTED
1134 ✓ should handle FETCH_LOOKUP_SUCCESS
1135 ✓ should handle SAVE_LOOKUP_FAILURE
1136 ✓ should handle SAVE_LOOKUP_FINISHED
1137 ✓ should handle SAVE_LOOKUP_STARTED
1138
1139 <LookupsForm /> - selectors
1140 ✓ should have known the selectors
1141 getLookup
1142 ✓ should return selected role
1143 ✓ should return empty object when selected role empty
1144 getSavingLookup
1145 ✓ should return saving
1146
1147 <LookupsForm> - utils
1148 with exposed properties
1149 ✓ should have known methods
1150 validations
1151 ✓ should return an array of fields that has validations
1152 getInitialNames
1153 ✓ should return an object of names that are include on locales
1154 ✓ should return an empty object if any name is passed
1155 getInitialValues
1156 ✓ should return an object of values that are include on locales
1157 ✓ should return an empty object if any values is passed
1158 reorderValues
1159 ✓ should return a sorted array of values depending startIndex and endIndex
1160 buildValues
1161 ✓ should return values for a lookup
1162 ✓ should return values with _delete key if there are removed values
1163
1164 <LookupsList /> - pages/admin/lookups-list/action-creators
1165 ✓ should have known action creators
1166 ✓ should check that 'fetchAdminLookups' action creator returns the correct object
1167
1168 <LookupList />
1169 ✓ renders a PageHeading component
1170 ✓ renders a MUIDataTable component
1171
1172 <LookupsList /> pages/admin/lookups-list
1173 ✓ should have known constant
1174
1175 <LookupsList /> - pages/admin/lookups-list/reducer
1176 ✓ should handle FETCH_LOOKUPS_STARTED
1177 ✓ should handle FETCH_LOOKUPS_SUCCESS
1178 ✓ should handle FETCH_LOOKUPS_FAILURE
1179 ✓ should handle FETCH_LOOKUPS_FINISHED
1180
1181 <LookupsList /> pages/admin/utils
1182 ✓ should return default columns
1183
1184 <RolesForm /> - Action Creators
1185 ✓ should have known action creators
1186 ✓ should check that 'fetchRole' action creator returns the correct object
1187 ✓ should check that 'saveRole' action creator returns the correct object
1188 ✓ should check that 'deleteRole' action creator returns the correct object
1189
1190 <RolesForm /> - Actions
1191 ✓ should have known properties
1192
1193 <RolesForm /> - Constants
1194 ✓ should have known properties
1195
1196 <RolesForm />
1197 New
1198 ✓ renders role form
1199 ✓ renders heading with action buttons
1200 ✓ will not render actions menu
1201 Show
1202 ✓ renders role form sections
1203 ✓ renders heading with action menu
1204 ✓ renders the selected modules
1205
1206 <ActionButtons />
1207 when isShow mode
1208 when the user has delete permissions on roles
1209 ✓ should render the ActionsMenu with the delete MenuItem
1210 when the user doesn't have delete permissions on roles
1211 ✓ should render the ActionsMenu without MenuItems
1212 when the user has write permissions on roles
1213 ✓ should render the edit button only
1214 when the user doesn't have write permissions on roles
1215 ✓ should not render the edit button
1216 when isEdit mode
1217 ✓ should render cancel and save buttons only
1218 when isNew mode
1219 ✓ should render cancel and save buttons
1220
1221 pages/admin/<RolesForm>/forms - AssociatedFormSectionsForm
1222 ✓ returns the AssociatedFormSectionsForm with fields
1223
1224 pages/admin/<RolesForm>/forms - AssociatedRolesForm
1225 ✓ returns the AssociatedRolesForm with fields
1226
1227 pages/admin/<RolesForm>/forms - index
1228 ✓ should have known properties
1229
1230 pages/admin/<RolesForm>/forms - ResourcesForm
1231 ✓ returns the resources form with fields
1232
1233 pages/admin/<RolesForm>/forms - RolesMainForm
1234 ✓ returns the roles form with fields
1235
1236 pages/admin/<RolesForm>/forms - utils
1237 buildPermissionOptions
1238 ✓ returns the action as option objects
1239
1240 pages/admin/<RolesForm>/forms - Validations
1241 ✓ returns an object with the fields to validate
1242
1243 pages/admin/<RolesForm> - index
1244 ✓ should have known properties
1245
1246 pages/admin/<RolesForm>/ - Namespace
1247 ✓ returns the namespace
1248
1249 <RolesForm /> - Reducers
1250 ✓ should handle FETCH_ROLE_STARTED
1251 ✓ should handle FETCH_ROLE_FAILURE
1252 ✓ should handle FETCH_ROLE_SUCCESS
1253 ✓ should handle FETCH_ROLE_FINISHED
1254 ✓ should handle CLEAR_SELECTED_ROLE
1255 ✓ should handle SAVE_ROLE_FAILURE
1256 ✓ should handle SAVE_ROLE_STARTED
1257 ✓ should handle SAVE_ROLE_FINISHED
1258 ✓ should return the same state if action is unknown
1259
1260 <RolesForm /> - Selectors
1261 ✓ should have known the selectors
1262 getRole
1263 ✓ should return selected role
1264 ✓ should return empty object when selected role empty
1265 getServerErrors
1266 ✓ should return server errors
1267 ✓ should return empty object when no server errors
1268 getSavingRecord
1269 ✓ should return saving
1270 getLoading
1271 ✓ should return loading
1272
1273 pages/admin/<RolesForm> - utils
1274 getFormsToRender
1275 ✓ should return the forms to render
1276 mergeFormSections
1277 ✓ should return the form sections merged in a single array
1278 groupSelectedIdsByParentForm
1279 ✓ should group the selected forms by parent form
1280
1281 <RolesList /> - Action Creators
1282 ✓ should have known action creators
1283 ✓ should check that 'fetchRoles' action creator returns the correct object
1284
1285 <RolesList /> - Actions
1286 ✓ should have known properties
1287
1288 <RolesList /> - Constants
1289 ✓ should have known properties
1290
1291 <RolesList />
1292 ✓ renders record list table
1293
1294 <RolesList /> - Reducers
1295 ✓ should handle ROLES_STARTED
1296 ✓ should handle ROLES_SUCCESS
1297 ✓ should handle ROLES_FAILURE
1298 ✓ should handle ROLES_FINISHED
1299
1300 <UserGroupsForm /> - Action Creators
1301 ✓ should have known action creators
1302 ✓ should check that 'fetchUserGroup' action creator returns the correct object
1303 ✓ should check that 'saveUserGroup' action creator returns the correct object
1304
1305 <UserGroupsForm /> - Actions
1306 ✓ should have known properties
1307
1308 <UserGroupsForm /> - Constants
1309 ✓ should have known constant
1310
1311 <UserGroupsForm />
1312 ✓ renders record form
1313 ✓ renders heading with action buttons
1314 ✓ renders submit button with valid props
1315
1316 <UserGroupsForm /> - Reducers
1317 ✓ should handle FETCH_USER_GROUP_STARTED
1318 ✓ should handle FETCH_USER_GROUP_FAILURE
1319 ✓ should handle FETCH_USER_GROUP_SUCCESS
1320 ✓ should handle FETCH_USER_GROUP_FINISHED
1321 ✓ should handle CLEAR_SELECTED_USER_GROUP
1322 ✓ should handle SAVE_USER_GROUP_STARTED
1323 ✓ should handle SAVE_USER_GROUP_FINISHED
1324
1325 <UserGroupsForm /> - Selectors
1326 getUserGroup
1327 ✓ should return selected user group
1328 ✓ should return empty object when selected user empty
1329 getErrors
1330 ✓ should return errors
1331 ✓ should return false when errors empty
1332 getServerErrors
1333 ✓ should return server errors
1334 ✓ should return empty object when no server errors
1335 getSavingRecord
1336 ✓ should return server errors
1337 ✓ should return empty object when no server errors
1338
1339 <UserGroupsList /> - Action Creators
1340 ✓ should have known action creators
1341 ✓ should check fetchUserGroups return the correct object
1342
1343 <UserGroupsList /> - Actions
1344 ✓ should have known properties
1345
1346 <UserGroupsList /> - Constants
1347 ✓ should have known constant
1348
1349 <UserGroupsList />
1350 ✓ renders record list table
1351
1352 <UserGroupsList /> - Reducers
1353 ✓ should handle USER_GROUPS_SUCCESS
1354
1355 <UsersForm /> - Action Creators
1356 ✓ should have known action creators
1357 ✓ should check that 'fetchUser' action creator returns the correct object
1358 ✓ should check that 'saveUser' action creator returns the correct object
1359
1360 <UsersForm /> - Actions
1361 ✓ should have known properties
1362
1363 <UsersList />
1364 ✓ renders record form
1365 ✓ renders heading with action buttons
1366 ✓ renders submit button with valid props
1367
1368 <UsersForm /> - Reducers
1369 ✓ should handle FETCH_USER_STARTED
1370 ✓ should handle FETCH_USER_FAILURE
1371 ✓ should handle FETCH_USER_SUCCESS
1372 ✓ should handle FETCH_USER_FINISHED
1373 ✓ should handle CLEAR_SELECTED_USER
1374 ✓ should handle SAVE_USER_STARTED
1375 ✓ should handle SAVE_USER_SUCCESS
1376
1377 <UsersForm /> - Selectors
1378 getUser
1379 ✓ should return selected user
1380 ✓ should return empty object when selected user empty
1381 getErrors
1382 ✓ should return errors
1383 ✓ should return false when errors empty
1384 getServerErrors
1385 ✓ should return server errors
1386 ✓ should return empty object when no server errors
1387 getSavingRecord
1388 ✓ should return server errors
1389 ✓ should return empty object when no server errors
1390
1391 <UserConfirmation /> - Component
1392 ✓ renders UserConfirmation component
1393
1394 <UsersList /> - Action Creators
1395 ✓ should have known action creators
1396 ✓ should check that 'fetchUsers' action creator returns the correct object
1397
1398 <UsersList /> - Actions
1399 ✓ should have known properties
1400
1401 <UsersList />
1402 ✓ renders record list table
1403
1404 <UsersList /> - Reducers
1405 ✓ should handle USERS_SUCCESS
1406
1407 <UsersList /> - Selectors
1408 selectListHeaders
1409 ✓ should return list headers
1410 ✓ should return empty object when list headers empty
1411
1412 headersToColumns
1413 ✓ should conver the headers to columns
1414
1415 <Dashboard /> - Action Creators
1416 ✓ should have known action creators
1417 ✓ should check the 'fetchDashboards' action creator to return the correct object
1418
1419 <Dashboard /> - Actions
1420 ✓ should have known properties
1421
1422 <Approvals> - pages/dashboard/components/reporting-location
1423 ✓ should render 5 <OptionsBox /> component
1424 ✓ should render 4 <OverviewBox /> component
1425 when the data is loading
1426 ✓ renders a <LoadingIndicator /> (51ms)
1427
1428 <Approvals> - pages/dashboard/components/approvals/constants
1429 ✓ should have known properties
1430
1431 <OverdueTasks> - pages/dashboard/components/overdue-tasks
1432 ✓ should render a <DashboardTable /> component
1433 ✓ should render 5 columns
1434 ✓ should render case_worker column
1435 ✓ should render assessment column
1436 ✓ should render case_plan column
1437 ✓ should render services column
1438 ✓ should render follow_up column
1439 when the data is loading
1440 ✓ renders a <LoadingIndicator /> (59ms)
1441
1442 <OverdueTasks> - pages/dashboard/components/overdue-tasks/constants
1443 ✓ should have known properties
1444
1445 <Overview> - pages/dashboard/components/overview
1446 ✓ should render a <OptionsBox /> component
1447 ✓ should render a <OverviewBox /> component
1448 ✓ renders the dash_group_overview dashboard
1449 ✓ renders the case_overview dashboard
1450 ✓ renders the shared_with_me dashboard
1451 ✓ renders the dash_shared_with_others dashboard
1452 when the data is loading
1453 ✓ renders a <LoadingIndicator /> (123ms)
1454
1455 <Overview> - pages/dashboard/components/overview/constants
1456 ✓ should have known properties
1457
1458 <ProtectionConcern> - pages/dashboard/components/protection-concern
1459 ✓ should render an <OptionsBoxOptionsBox /> component
1460 ✓ should render a <DasboardTable /> component
1461 when the data is loading
1462 ✓ renders a <LoadingIndicator /> (108ms)
1463
1464 <ProtectionConcern> - pages/dashboard/components/protection-concern/constants
1465 ✓ should have known properties
1466
1467 <ReportingLocation> - pages/dashboard/components/reporting-location
1468 ✓ should render an <OptionsBoxOptionsBox /> component
1469 ✓ should render a <DasboardTable /> component
1470 when the data is loading
1471 ✓ renders a <LoadingIndicator /> (69ms)
1472
1473 <ReportingLocation> - pages/dashboard/components/reporting-location/constants
1474 ✓ should have known properties
1475
1476 <SharedFromMyTeam> - pages/dashboard/components/shared-from-my-team
1477 ✓ should render a <DashboardTable /> component
1478 ✓ should render 4 columns
1479 ✓ should render case_worker column
1480 ✓ should render shared_from_my_team_referrals column
1481 ✓ should render shared_from_my_team_pending_transfers column
1482 ✓ should render shared_from_my_team_rejected_transfers column
1483 when the data is loading
1484 ✓ renders a <LoadingIndicator /> (63ms)
1485
1486 <SharedFromMyTeam> - pages/dashboard/components/shared-from-my-team/constants
1487 ✓ should have known properties
1488
1489 <SharedWithMyTeam> - pages/dashboard/components/shared-with-my-team
1490 ✓ should render a <DashboardTable /> component
1491 ✓ should render 3 columns
1492 ✓ should render case_worker column
1493 ✓ should render shared_with_my_team_referrals column
1494 ✓ should render shared_with_my_team_pending_transfers column
1495 when the data is loading
1496 ✓ renders a <LoadingIndicator /> (60ms)
1497
1498 <SharedWithMyTeam> - pages/dashboard/components/shared-with-my-team/constants
1499 ✓ should have known properties
1500
1501 <WorkflowIndividualCases> - pages/dashboard/components/workflow-individual-cases
1502 ✓ should render an <OptionsBox /> component
1503 ✓ should render a <PieChart /> component
1504 when the data is loading
1505 ✓ renders a <LoadingIndicator /> (61ms)
1506
1507 <WorkflowIndividualCases> - pages/dashboard/components/workflow-individual-cases/constants
1508 ✓ should have known properties
1509
1510 <WorkflowTeamCases> - pages/dashboard/components/workflow-team-cases
1511 ✓ should render a <DashboardTable /> component
1512 ✓ should render 3 columns
1513 ✓ should render New column
1514 ✓ should render Case plan column
1515 ✓ should render Response Type 1 column
1516 when the data is loading
1517 ✓ renders a <LoadingIndicator /> (59ms)
1518
1519 <WorkflowTeamCases> - pages/dashboard/components/workflow-team-cases/constants
1520 ✓ should have known properties
1521
1522 Verifying config constant
1523 ✓ should have known constant
1524 ✓ should have correct constant value
1525
1526 <Dashboard />
1527 ✓ should render a <PageContainer /> component
1528 ✓ should render a <PageHeading /> component
1529 ✓ should render a <PageContent /> component
1530 ✓ should render a <Overview /> component
1531 ✓ should render a <SharedFromMyTeam /> component
1532 ✓ should render a <SharedWithMyTeam /> component
1533 ✓ should render a <WorkflowIndividualCases /> component
1534 ✓ should render a <Approvals /> component
1535 ✓ should render a <OverdueTasks /> component
1536 ✓ should render a <WorkflowTeamCases /> component
1537 ✓ should render a <ReportingLocation /> component
1538 ✓ should render a <ProtectionConcern /> component
1539
1540 <Dashboard /> - index
1541 ✓ should have known properties
1542
1543 <Dashboard /> - Reducers
1544 ✓ should handle DASHBOARDS_STARTED
1545 ✓ should handle DASHBOARDS_SUCCESS
1546 ✓ should handle DASHBOARDS_FINISHED
1547 ✓ should handle DASHBOARDS_FAILURE
1548 ✓ should handle user/LOGOUT_SUCCESS
1549
1550 <Dashboard /> - Selectors
1551 getCasesByAssessmentLevel
1552 ✓ should return a list of dashboard
1553 getCasesByAssessmentLevel empty value
1554 ✓ should return a map when dashboard is empty
1555 getWorkflowTeamCases
1556 ✓ should return list of headers allowed to the user
1557 ✓ should return false when there are not users in store
1558 getReportingLocation
1559 ✓ should return the reporting location config
1560 getApprovalsAssessmentPending
1561 ✓ should return the approvals assessment pending
1562 getApprovalsClosurePending
1563 ✓ should return the approvals case plan pending
1564 getApprovalsCasePlanPending
1565 ✓ should return the approvals closure pending
1566 getProtectionConcerns
1567 ✓ should return the protection concerns data
1568 getSharedWithMe
1569 ✓ should return the shared with me
1570 getSharedWithOthers
1571 ✓ should return the shared with others
1572 getGroupOverview
1573 ✓ should return the group overview
1574 getCaseOverview
1575 ✓ should return the case overview
1576 getSharedWithMyTeam
1577 ✓ should return the shared with my team dashboard
1578
1579 dashboardType - pages/dashboard/utils/
1580 ✓ should return BadgedIndicator component if dashboard type is badged indicator
1581 ✓ should return OverviewBox component if dashboard type is overview box
1582 ✓ should return null component if dashboard type is not valid
1583
1584 index - pages/dashboard/utils/
1585 ✓ should have known properties
1586
1587 permittedSharedWithMe - pages/dashboard/utils/
1588 ✓ should return transfer indicators only
1589 ✓ should return referral indicators only
1590 ✓ should return all the indicators
1591
1592 taskOverdueHasData - pages/dashboard/utils/
1593 ✓ should respond false when taskOverdue has not data
1594 ✓ should respond true when at least one taskOverdue has data
1595
1596 teamSharingTable - pages/dashboard/utils/
1597 ✓ should return empty object if data is empty
1598 ✓ should respond true when at least one taskOverdue has data
1599
1600 toApprovalsManager - pages/dashboard/utils/
1601 ✓ should convert the data for OverviewBox
1602 ✓ should convert the data if one of the indicators is not present OverviewBox
1603 ✓ should return an empty indicator key
1604
1605 toData1D - pages/dashboard/utils/
1606 ✓ should convert data to plain JS
1607 ✓ should not return labels if there are not translations
1608
1609 toListTable - pages/dashboard/utils/
1610 ✓ should convert data to plain JS
1611
1612 toProtectionConcernTable - pages/dashboard/utils/
1613 ✓ should convert the data for DashboardTable
1614
1615 toReportingLocationTable - pages/dashboard/utils/
1616 ✓ should convert the data for the table
1617
1618 toTasksOverdueTable - pages/dashboard/utils/
1619 ✓ should convert the data for DashboardTable
1620
1621 <NotAuthorized />
1622 ✓ renders h1 tag
1623 ✓ renders h6 tag
1624 ✓ renders p tag
1625 ✓ renders forgot a tag
1626
1627 <NotFound />
1628 ✓ renders h1 tag
1629 ✓ renders h6 tag
1630 ✓ renders p tag
1631 ✓ renders forgot a tag
1632
1633 <ExportList /> - pages/export-list/action-creators
1634 ✓ should have known action creators
1635 ✓ should check the 'fetchExports' action creator to return the correct object
1636
1637 <ExportList /> - pages/export-list/actions
1638 ✓ should have known actions
1639
1640 <ExportList /> - pages/export-list/constants
1641 ✓ should have known constants
1642
1643 <ExportList />
1644 ✓ should render a table with three rows
1645 ✓ should render <PageContainer>
1646 ✓ should render <PageHeading>
1647 ✓ should render <PageContent>
1648 ✓ should render <IndexTable>
1649
1650 <ExportList/> - pages/export-list/records
1651 ✓ should have known exported properties
1652
1653 <ExportList /> - pages/export-list/reducer
1654 ✓ should handle FETCH_EXPORTS_SUCCESS
1655
1656 <ExportList /> - pages/export-list/reducer
1657 selectListHeaders
1658 ✓ should return list of bulk export headers
1659 ✓ should not return any header list
1660
1661 pages - index
1662 ✓ should have known properties
1663
1664 <Login /> - Action Creators
1665 ✓ should have known action creators
1666
1667 <Login /> - Actions
1668 ✓ should have known actions
1669
1670 <Login />
1671 for login form
1672 ✓ renders form
1673 for provider selection
1674 ✓ renders login selection
1675
1676 <IdpSelection /> - Action Creators
1677 ✓ should have known action creators
1678
1679 auth-utils
1680 ✓ returns provider details
1681 ✓ returns login request
1682 ✓ returns token request
1683
1684 <LoginSelection />
1685 ✓ renders login buttons for providers
1686
1687 <LoginSelection /> - Selectors
1688 getIdentityProviders
1689 ✓ should return identity providers
1690 ✓ should return empty object when records empty
1691
1692 <LoginForm /> - Action Creators
1693 ✓ should have known action creators
1694 ✓ should check the 'attemptLogin' action creator to return the correct object
1695
1696 <LoginForm /> - Actions
1697 ✓ should have known actions
1698
1699 <LoginForm />
1700 ✓ renders form
1701 ✓ renders h1 tag
1702 ✓ renders username and password input fields
1703 ✓ renders login button
1704
1705 <LoginForm /> - Reducers
1706 ✓ should handle LOGIN_STARTED
1707 ✓ should handle LOGIN_FAILURE
1708
1709 <LoginForm /> - Selectors
1710 selectModules
1711 ✓ should return records
1712 ✓ should return empty object when records empty
1713 selectAgency
1714 ✓ should return records
1715 ✓ should return empty object when records empty
1716 selectAuthErrors
1717 ✓ should return records meta
1718 ✓ should return empty object when records empty
1719
1720 <Login /> - Reducers
1721 ✓ should handle LOGIN_SUCCESS
1722
1723 <Login /> - Selectors
1724 selectUseIdentityProvider
1725 ✓ should return identity providers
1726
1727 <Reports /> - Action Creators
1728 ✓ should have known action creators
1729 ✓ should check the 'fetchReport' action creator to return the correct object
1730
1731 <Reports /> - Actions
1732 ✓ should have known actions
1733
1734 <Report />
1735 ✓ renders report component
1736 ✓ renders PageContainer, PageHeading and PageContent
1737 ✓ renders TableValues
1738 When data still loading
1739 ✓ renders report component
1740 ✓ renders LoadingIndicator
1741
1742 <Reports /> - Reducers
1743 ✓ deprecated Reports/CASES_BY_NATIONALITY
1744 ✓ deprecated Reports/CASES_BY_AGE_AND_SEX
1745 ✓ deprecated Reports/CASES_BY_PROTECTION_CONCERN
1746 ✓ deprecated Reports/CASES_BY_AGENCY
1747 ✓ should handle FETCH_REPORT_STARTED
1748 ✓ should handle FETCH_REPORT_SUCCESS
1749 ✓ should handle FETCH_REPORT_FINISHED
1750 ✓ should handle FETCH_REPORT_FAILURE
1751 ✓ should handle user/LOGOUT_SUCCESS
1752
1753 <Reports /> - Selectors
1754 selectReport
1755 ✓ should return records
1756 ✓ should return empty object when records empty
1757
1758 <Reports /> - Action Creators
1759 ✓ should have known action creators
1760 ✓ should check the 'fetchReports' action creator to return the correct object
1761
1762 <Reports /> - Component
1763 ✓ should render <Card>
1764 ✓ should render <CardActionArea>
1765 ✓ should render <CardContent>
1766 ✓ should render <Box>
1767 ✓ should render <TablePagination>
1768 When doesn't have permission to create report
1769 ✓ should not render AddIcon
1770
1771 <Reports /> - Reducers
1772 ✓ deprecated Reports/CASES_BY_NATIONALITY
1773 ✓ deprecated Reports/CASES_BY_AGE_AND_SEX
1774 ✓ deprecated Reports/CASES_BY_PROTECTION_CONCERN
1775 ✓ deprecated Reports/CASES_BY_AGENCY
1776 ✓ should handle FETCH_REPORTS_STARTED
1777 ✓ should handle FETCH_REPORTS_SUCCESS
1778 ✓ should handle FETCH_REPORTS_FINISHED
1779 ✓ should handle FETCH_REPORTS_FAILURE
1780
1781 <Support /> - Action Creators
1782 ✓ should have known action creators
1783 ✓ should check the 'fetchData' action creator to return the correct object
1784
1785 <Support />
1786 ✓ renders the Support
1787
1788 <RecordList /> - Reducers
1789 ✓ should handle FETCH_DATA_SUCCESS
1790 ✓ should handle FETCH_DATA_STARTED
1791 ✓ should handle FETCH_DATA_FINISHED
1792 ✓ should handle FETCH_DATA_FAILURE
1793
1794 <Support /> - Selectors
1795 selectSupportData
1796 ✓ should return records
1797 ✓ should return empty object when records empty
1798
1799 <TASKS /> - Action Creators
1800 ✓ should have known action creators
1801 ✓ should check the 'fetchFlags' action creator to return the correct object
1802
1803 <TaskList /> - Actions
1804 ✓ should have known properties
1805
1806 Verifying config constant
1807 ✓ should have known constant
1808
1809 <TaskList />
1810 ✓ renders tasks table
1811 ✓ renders tasks table with priority as DashboardChip
1812
1813 <TaskList /> - Reducer
1814 ✓ should handle tasks/TASKS_STARTED
1815 ✓ should handle tasks/TASKS_SUCCESS
1816 ✓ should handle tasks/TASKS_FINISHED
1817 ✓ should handle tasks/TASKS_FAILURE
1818
1819 <RecordActions /> - Action Creators
1820 ✓ should have known action creators
1821 ✓ should check that 'setDialog' action creator returns the correct object
1822 ✓ should check that 'setPending' action creator returns the correct object
1823
1824 <RecordActions /> - Actions
1825 ✓ should have known actions
1826
1827 <AddIncident />
1828 ✓ renders Formik
1829 ✓ renders ActionDialog
1830 ✓ renders Form
1831 ✓ renders Fields
1832 ✓ renders component with valid props
1833
1834 <AddIncident /> - constants
1835 ✓ should have known constant
1836
1837 <Fields />
1838 ✓ renders 1 FormSectionField
1839 ✓ renders component with valid props
1840
1841 <Fields /> - constants
1842 ✓ should have known constant
1843
1844 <Fields /> - index
1845 ✓ should have known properties
1846
1847 <AddIncident /> - index
1848 ✓ should have known properties
1849
1850 <AddService />
1851 ✓ renders Formik
1852 ✓ renders ActionDialog
1853 ✓ renders Form
1854 ✓ renders Fields
1855 ✓ renders component with valid props
1856
1857 <AddService /> - constants
1858 ✓ should have known constant
1859
1860 <AddService /> - index
1861 ✓ should have known properties
1862
1863 <RecordActions /> - Constants
1864 ✓ should have known constant
1865
1866 <RecordActions />
1867 Component ToggleOpen
1868 ✓ renders ToggleOpen
1869 Component ToggleEnable
1870 ✓ renders ToggleEnable
1871 Component RequestApproval
1872 ✓ renders RequestApproval
1873 Component Transitions
1874 ✓ renders Transitions
1875 Component Notes
1876 ✓ renders Notes
1877 Component Menu
1878 when user has access to all menus
1879 ✓ renders Menu
1880 ✓ renders MenuItem
1881 ✓ renders MenuItem with Refer Cases option
1882 ✓ renders MenuItem with Add Incident option
1883 ✓ renders MenuItem with Add Services Provision option
1884 ✓ renders MenuItem with Export option
1885 when user has not access to all menus
1886 ✓ renders Menu
1887 ✓ renders MenuItem
1888 ✓ renders MenuItem without Refer Cases option
1889 ✓ renders MenuItem without Export custom option
1890 ✓ renders MenuItem without Export option
1891 Component Exports
1892 ✓ renders Exports
1893 ✓ renders valid props for Exports components
1894 when record is selected
1895 - renders add refer menu enabled
1896 ✓ renders add reassign menu enabled
1897 - renders add transfer menu enabled
1898 ✓ renders add incident menu disabled
1899 ✓ renders add service menu disabled
1900 ✓ renders add export menu enabled
1901 when record is selected from a search, id_search: true
1902 - renders add refer menu enabled
1903 ✓ renders add reassign menu enabled
1904 - renders add transfer menu enabled
1905 ✓ renders add incident menu enabled
1906 ✓ renders add service menu enabled
1907 ✓ renders add export menu enabled
1908 when no record is selected
1909 - renders add refer menu disabled
1910 ✓ renders add reassign menu disabled
1911 - renders add transfer menu disabled
1912 ✓ renders add incident menu disabled
1913 ✓ renders add service menu disabled
1914 ✓ renders add export menu disabled
1915 when many records are selected
1916 - renders add refer menu enabled
1917 ✓ renders add reassign menu enabled
1918 - renders add transfer menu enabled
1919 ✓ renders add incident menu disabled
1920 ✓ renders add service menu disabled
1921 ✓ renders add export menu enabled
1922 when all the records are selected
1923 - renders add refer menu disabled
1924 ✓ renders add reassign menu disabled
1925 - renders add transfer menu disabled
1926 ✓ renders add incident menu disabled
1927 ✓ renders add service menu disabled
1928 ✓ renders add export menu enabled
1929
1930 <RecordActions /> - exports/action-creators
1931 ✓ should have known action creators
1932 ✓ should check the 'saveExport' action creator to return the correct object, when creating an export
1933
1934 <RecordActions /> - exports/actions
1935 ✓ should have known actions
1936
1937 <RecordActions /> - <Exports />
1938 ✓ renders ActionDialog (484ms)
1939 ✓ renders FormContext (442ms)
1940 ✓ should accept valid props (470ms)
1941
1942 <RecordActions /> - exports/constants
1943 ✓ should have known properties
1944
1945 <RecordActions /> - exports/index
1946 ✓ should have known properties
1947
1948 <RecordActions /> - exports/utils
1949 with exposed properties
1950 ✓ should have known methods
1951 allowedExports
1952 ✓ should return all export types if userPermission contains manage permission
1953 ✓ should return export types contained in userPermission
1954 formatFileName
1955 ✓ should set to default filename if any filename was not specified
1956 ✓ should not return labels if there are not translations
1957 exporterFilters
1958 ✓ should return filters with short_id, if isShowPage true
1959 ✓ should return filters with short_id, if isShowPage is false and allRowsSelected is false and there are not appliedFilters
1960 ✓ should return and object with applied filters, if isShowPage is false and allRowsSelected is true
1961 ✓ should return and object with short_id, and query if isShowPage is false, allRowsSelected is false and a query is specified
1962 ✓ should return and object with applied filters and query, if isShowPage is false, allRowsSelected is true and a query is specified
1963 ✓ should return and object with default filter if allRecordsSelected are selected
1964
1965 <RecordActions /> - Reducers
1966 ✓ should handle SET_DIALOG
1967 ✓ should handle SET_DIALOG_PENDING
1968
1969 <RequestApproval /> - Action Creators
1970 ✓ should have known action creators
1971 ✓ should check that 'approvalRecord' action creator returns the correct object
1972
1973 <RequestApproval /> - Actions
1974 ✓ should have known actions
1975
1976 <RequestApproval /> - Reducers
1977 ✓ should handle APPROVE_RECORD_SUCCESS
1978
1979 <RecordActions /> - Selectors
1980 selectDialog
1981 ✓ should return dialog open status
1982 selectDialogPending
1983 ✓ should return dialog pending status
1984
1985 <ToggleOpen />
1986 ✓ renders ToggleOpen
1987 ✓ renders ActionDialog
1988 ✓ renders component with valid props
1989
1990 <Transitions /> - Action Creators
1991 ✓ should have known action creators
1992 ✓ should check the 'fetchAssignUsers' action creator to return the correct object
1993 ✓ should check the 'fetchTransferUsers' action creator to return the correct object
1994 ✓ should check the 'removeFormErrors' action creator to return the correct object
1995 ✓ should check the 'saveAssignedUser' action creator to return the correct object
1996 ✓ should check the 'saveTransferUser' action creator to return the correct object
1997 ✓ should check the 'fetchReferralUsers' action creator to return the correct object
1998 ✓ should check the 'saveReferral' action creator to return the correct object
1999
2000 <Transitions /> - Actions
2001 ✓ should have known actions
2002
2003 <Transitions />
2004 when transitionType is 'referral'
2005 ✓ renders TransitionDialog
2006 ✓ renders ReferralForm
2007 with props
2008 ✓ should check the allowed props
2009 ✓ should check the providedConsent prop
2010 ✓ should check the userPermissions prop
2011 ✓ should check the setPending prop
2012 ✓ should check the setDisabled prop
2013 ✓ should check the referralRef prop
2014 ✓ should check the disabled prop
2015 ✓ should check the recordType prop
2016 ✓ should check the record prop
2017 when transitionType is 'reassign'
2018 ✓ renders TransitionDialog
2019 ✓ renders ReassignForm
2020 when transitionType is 'transfer'
2021 ✓ renders TransitionDialog
2022 ✓ renders TransferForm
2023 with props
2024 ✓ should check the allowed props
2025 ✓ should check the providedConsent prop
2026 ✓ should check the isBulkTransfer prop
2027 ✓ should check the userPermissions prop
2028 ✓ should check the setPending prop
2029 ✓ should check the setDisabled prop
2030 ✓ should check the transferRef prop
2031 ✓ should check the disabled prop
2032 ✓ should check the isBulkTransfer prop
2033 ✓ should check the record prop
2034 ✓ should check the recordType prop
2035
2036 <Transitions /> - record-actions/transitions/components/constants
2037 ✓ should have known constant
2038
2039 <Transitions /> - components/index
2040 ✓ should have known properties
2041
2042 <ReassignForm />
2043 ✓ renders Formik
2044 ✓ renders Form
2045 ✓ renders SearchableSelect
2046 ✓ renders Field
2047 ✓ renders SearchableSelect with valid props
2048 with getUsersByTransitionType
2049 when mounting component
2050 ✓ should have same no. of users (407ms)
2051
2052 <ReferralForm />
2053 Create referral
2054 ✓ renders Formik
2055 ✓ renders FormInternal
2056 ✓ renders ProvidedConsent
2057 ✓ renders FormControlLabel
2058 ✓ renders MuiCheckbox
2059 ✓ should accept valid props
2060 ✓ renders Formik with valid props
2061 Create referral from service
2062 ✓ renders Formik
2063 ✓ renders Formik with initial values from the service
2064
2065 <Referral /> - Constants
2066 ✓ should have known constant
2067 ✓ should have known SERVICE_SECTION_FIELDS properties
2068
2069 <FormInternal />
2070 ✓ renders SearchableSelect
2071 ✓ renders TextField
2072 ✓ renders Field
2073 ✓ renders default label for SearchableSelect (374ms)
2074 ✓ renders TextFieldProps from SearchableSelect with valid props
2075
2076 <ReferralForm /> - index
2077 ✓ should have known properties
2078
2079 <MainForm />
2080 ✓ renders Form
2081 ✓ renders ProvidedConsent
2082 ✓ renders ProvidedConsent with valid props
2083 ✓ renders FormControlLabel
2084 ✓ renders FormInternal
2085 when mounting fields for FormInternal
2086 ✓ renders valid props for SERVICE_FIELD field
2087 ✓ renders valid props for AGENCY_FIELD field
2088 ✓ renders valid props for LOCATION_FIELD field
2089 ✓ renders valid props for TRANSITIONED_TO_FIELD field
2090 ✓ renders valid props for NOTES_FIELD field
2091
2092 <ProvidedConsent /> - referrals
2093 ✓ should not render anything when child has provided consent and user can't consent override
2094 ✓ should not render anything when child has provided consent and user can consent override
2095 ✓ should render <ProvidedForm> when child has not provided consent and user can consent override (51ms)
2096 ✓ should render <ProvidedForm> when child has not provided consent and user can't consent override (48ms)
2097 ✓ should render <ProvidedForm> with valid props (51ms)
2098
2099 <ProvidedForm /> - referrals
2100 ✓ should render properly when user can override consent (82ms)
2101 ✓ should render some components when user can not override consent (55ms)
2102
2103 <BulkTransfer />
2104 when isBulkTransfer='true'
2105 ✓ renders TransferCheckbox
2106 when isBulkTransfer='false'
2107 ✓ renders null
2108
2109 <TransferForm />
2110 ✓ renders FormControlLabel
2111 ✓ renders Checkbox
2112 ✓ renders TextField
2113 ✓ renders SearchableSelect
2114 ✓ should accept valid props
2115 ✓ renders ProvidedConsent with valid props
2116 ✓ renders Formik with valid props
2117
2118 <Transfer /> - Constants
2119 ✓ should have known constant
2120
2121 <TransferForm /> - index
2122 ✓ should have known properties
2123
2124 <ProvidedConsent /> - transfers
2125 ✓ should not render anything when child has provided consent and user can't consent override
2126 ✓ should not render anything when child has provided consent and user can consent override
2127 ✓ should render <ProvidedForm> when child has not provided consent and user can consent override (54ms)
2128 ✓ should render <ProvidedForm> when child has not provided consent and user can't consent override (53ms)
2129 ✓ should render <ProvidedForm> with valid props (53ms)
2130
2131 <ProvidedForm /> - transfers
2132 ✓ should render properly when user can override consent (59ms)
2133 ✓ should render some components when user can not override consent (56ms)
2134 ✓ should reload users if any agency, location or user has changed (57ms)
2135
2136 <TransferCheckbox />
2137 ✓ renders FormControlLabel
2138 ✓ renders Checkbox
2139
2140 <TransferInternal />
2141 ✓ renders SearchableSelect
2142 ✓ renders TextField
2143 ✓ renders Field
2144 ✓ renders default label for SearchableSelect (408ms)
2145
2146 <TransitionDialog />
2147 ✓ renders Dialog
2148 ✓ renders DialogTitle
2149 ✓ renders DialogContent
2150 ✓ renders IconButton
2151 when transitionType is 'referral'
2152 ✓ should render 'Referral Case No.' as title
2153 when transitionType is 'reassign'
2154 ✓ should render 'Assign Case No.' as title
2155 when transitionType is 'Transfer'
2156 ✓ should render 'Transfer Case No.' as title
2157
2158 <Transition /> - utils
2159 ✓ should have known methods
2160 with internalFieldsDirty
2161 ✓ should return true if there are dirty fields
2162 ✓ should return false if there aren't dirty fields
2163 with getInternalFields
2164 ✓ should return true if there are dirty fields
2165 ✓ should return false if there aren't dirty fields
2166 with hasProvidedConsent
2167 when record has provided consent
2168 ✓ should return true
2169 when record has not provided consent
2170 ✓ should return false
2171 with generatePath
2172 when path is assigns
2173 ✓ should return correct path 'cases/123/assigns'
2174 when path is transfers
2175 ✓ should return correct path 'cases/123/transfers'
2176 when path is referral
2177 ✓ should return correct path 'cases/123/referrals'
2178 getUserFilters
2179 ✓ returns all filters if all have values
2180 ✓ returns the filters with values
2181
2182 <Transitions /> - Constants - RecordActions
2183 ✓ should have known constant
2184
2185 <Transitions /> - Reducers
2186 ✓ should handle ASSIGN_USERS_FETCH_SUCCESS
2187 ✓ should handle ASSIGN_USER_SAVE_FAILURE
2188 ✓ should handle ASSIGN_USER_SAVE_FINISHED
2189 ✓ should handle ASSIGN_USER_SAVE_STARTED
2190 ✓ should handle ASSIGN_USER_SAVE_SUCCESS
2191 ✓ should handle CLEAR_ERRORS
2192 ✓ should handle TRANSFER_USERS_FETCH_SUCCESS
2193 ✓ should handle TRANSFER_USER_FAILURE
2194 ✓ should handle TRANSFER_USER_STARTED
2195 ✓ should handle TRANSFER_USER_SUCCESS
2196 ✓ case Actions.REFERRAL_USERS_FETCH_SUCCESS
2197 ✓ case Actions.REFER_USER_FAILURE
2198 ✓ case Actions.REFER_USER_STARTED
2199 ✓ case Actions.REFER_USER_SUCCESS
2200 ✓ case Actions.REFERRAL_USERS_FETCH_STARTED
2201
2202 <Transitions /> - Selectors
2203 getUsersByTransitionType
2204 ✓ should return list of users allowed to reassign
2205 ✓ should return empty when there are not users in store
2206 getErrorsByTransitionType
2207 ✓ should return error messages
2208 ✓ should return undefined when there are not messages in store
2209 deprecated getMockUsers
2210 ✓ should be undefined
2211 deprecated getAssignUsers
2212 ✓ should be undefined
2213 getLoadingTransitionType
2214 ✓ should return error messages
2215 ✓ should return undefined when there are not messages in store
2216
2217 <RecordActions /> - utils
2218 ✓ should return true when the actions is not enabled
2219 ✓ should return false when the actions is enabled
2220 ✓ should return false when the isSearchFromList and enabledOnSearch are true
2221 ✓ should return true when the selectedRecords is empty and there are not records
2222
2223 <RecordForm /> - Action Creators
2224 ✓ should have known action creators
2225 ✓ should check the 'setSelectedForm' action creator to return the correct object
2226 ✓ should check the 'setSelectedRecord' action creator to return the correct object
2227 ✓ should check the 'fetchForms' action creator to return the correct object
2228 ✓ should check the 'fetchOptions' action creator to return the correct object
2229 ✓ should check the 'fetchLookups' action creator to return the correct object
2230 ✓ should check the 'setServiceToRefer' action creator return the correct object
2231 ✓ should check the 'fetchAgencies' action creator return the correct object
2232
2233 <RecordForm /> - Actions
2234 ✓ should have known actions
2235
2236 Verifying config constant
2237 ✓ should have known constant
2238
2239 <RecordForms /> - Component
2240 ✓ renders the PageContainer
2241 ✓ renders the LoadingIndicator
2242 ✓ renders the RecordFormToolbar
2243 ✓ renders the Nav
2244 ✓ renders the RecordOwner
2245 when basic_identity is the selectedForm
2246 ✓ should render RecordForm and not RecordOwner and Transitions
2247 when approvals is the selectedForm but the record doesn't have approvals data
2248 ✓ should render Approvals without ApprovalPanel
2249 when approvals is the selectedForm and the record has approvals data
2250 ✓ should render Approvals with ApprovalPanel
2251 when record is new
2252 ✓ should render Approvals without ApprovalPanel
2253 when forms are loading
2254 ✓ should render CircularProgress
2255
2256 Verifying config constant
2257 ✓ should have known constant
2258
2259 <WorkflowIndicator />
2260 ✓ renders the workflow indicator (281ms)
2261 ✓ renders status reopened if case has been reopened (53ms)
2262
2263 Verifying config constant
2264 ✓ should have known constant
2265 ✓ should have known CUSTOM_STRINGS_SOURCE properties
2266
2267 <SelectField />
2268 when the lookup is custom
2269 ✓ render the select field with options
2270
2271 <Form /> - index
2272 ✓ should have known properties
2273
2274 <RecordFormTitle />
2275 ✓ renders a <IconButton />
2276 ✓ renders a <ArrowBackIosIcon />
2277 ✓ renders a valid text passed as a prop
2278
2279 <RecordFormToolbar />
2280 ✓ renders a RecordFormToolbar/>
2281 ✓ renders a <WorkflowIndicator /> component, when record is enabled
2282 ✓ renders 'Case is disabled' text, when record is disabled (123ms)
2283 when records is being save
2284 ✓ renders a RecordFormToolbar/>
2285
2286 <RecordForm />
2287 ✓ renders the selected form and fields
2288
2289 <SubformField />
2290 ✓ should render the subform field
2291
2292 Verifying config constant
2293 ✓ should have known constant
2294
2295 <ServicesSubform />
2296 ✓ renders the subform
2297 when field is visible should not be render
2298 ✓ renders the subform
2299
2300 Verifying config constant
2301 ✓ should have known constant
2302
2303 <SubformDialog />
2304 ✓ render the subform
2305 ✓ renders the FormSectionField
2306 when field is visible should not be render
2307 ✓ render the subform
2308 ✓ renders the visible FormSectionField
2309
2310 <DateHeader /> - Form - Subforms
2311 1) should render a date value formatted to DATE_FORMAT, when includeTime is false
2312 ✓ should render a date value formatted to DATE_TIME_FORMAT, when includeTime is true
2313 ✓ should render an empty string if any value is passed
2314
2315 <SubformLookupHeader /> - Form - Subforms
2316 ✓ should render the display_text of the lookup defined on the optionsStringSource
2317 ✓ should render the same value is this is empty
2318 ✓ should render display_text from the values defined on the optionsStringText
2319
2320 <SubformMenu />
2321 ✓ renders the subform menu (105ms)
2322 ✓ render the ReferAction if service is referrable (163ms)
2323
2324 Verifying config constant
2325 ✓ should have known constant
2326
2327 Verifying utils
2328 ✓ should have known utils
2329
2330 appendDisabledAgency
2331 ✓ should append the agency if not present in the agencies list
2332
2333 appendDisabledUser
2334 ✓ should append the user if not present in the users list
2335
2336 getConnectedFields
2337 ✓ should return the connected fields for the service_section index
2338 ✓ should return the connected fields
2339 handleChangeOnServiceUser
2340 ✓ should set the connected fields when the user is changed
2341 translatedText
2342 ✓ should return the same displayText if not localized
2343 ✓ should return the translated displayText for english
2344 ✓ should return empty if the translation does not exist
2345 findOptionDisplayText
2346 ✓ should return the display text for agency option
2347 buildCustomLookupsConfig
2348 ✓ should return the config for custom lookups with disabled options
2349
2350 <RecordForm /> - index
2351 ✓ should have known properties
2352
2353 <RecordInformation />
2354 ✓ renders a RecordInformation component />
2355 ✓ renders a NavGroup component />
2356 ✓ renders a NavItem component />
2357
2358 Verifying config constant
2359 ✓ should have known constant
2360
2361 <Nav />
2362 ✓ renders a Nav component />
2363 ✓ renders a RecordInformation component />
2364 ✓ renders a Divider component />
2365 ✓ renders a NavGroup component from record information and another one from the others forms groups />
2366 ✓ should render valid props
2367
2368 <NavGroup />
2369 ✓ renders a NavItem component />
2370 ✓ should render valid props
2371
2372 <NavItem />
2373 ✓ renders a ListItem component />
2374 ✓ renders a ListItemText component />
2375 ✓ should render valid props
2376
2377 <RecordForm /> - Reducers
2378 ✓ should handle SET_OPTIONS_SUCCESS
2379 ✓ should handle SET_LOCATIONS_SUCCESS
2380 ✓ should handle RECORD_FORMS_SUCCESS
2381 ✓ should handle RECORD_FORMS_FAILURE
2382 ✓ should handle RECORD_FORMS_STARTED
2383 ✓ should handle RECORD_FORMS_FINISHED
2384 ✓ should handle user/LOGOUT_SUCCESS
2385 ✓ should handle forms/FETCH_AGENCIES_FAILURE
2386 ✓ should handle forms/FETCH_AGENCIES_FINISHED
2387 ✓ should handle forms/FETCH_AGENCIES_STARTED
2388 ✓ should handle forms/FETCH_AGENCIES_SUCCESS
2389 ✓ should handle forms/SET_SELECTED_FORM
2390 ✓ should handle forms/SET_SELECTED_RECORD
2391 ✓ should handle forms/SET_SERVICE_TO_REFER
2392
2393 <RecordForm /> - Selectors
2394 getErrors
2395 ✓ should return error value
2396 ✓ should return false when there is not any error
2397 getLoadingState
2398 ✓ should return loading state value
2399 ✓ should return false when there is not any loading state
2400 getRecord
2401 ✓ should not find removed function getRecord
2402 getOption
2403 ✓ should return the options or lookups
2404 ✓ should return an empty array when there are not any options
2405 getRecordForms
2406 ✓ should return the record forms
2407 ✓ should return an empty array when there are not any options
2408 getRecordFormsByUniqueId
2409 ✓ should return the record forms
2410 ✓ should return an empty array when there are not any options
2411 ✓ should return form with visible false
2412 getFormNav
2413 ✓ should return the forms nav
2414 ✓ should return an empty ordered map when there are not any options
2415 getFirstTab
2416 ✓ should return the forms nav
2417 ✓ should return an empty ordered map when there are not any options
2418 getOptions
2419 ✓ should return the options or lookups
2420 ✓ should return an empty array when there are not any options
2421 getLocations
2422 ✓ should return the options or lookups
2423 ✓ should return an empty array when there are not any options
2424 getAssignableForms
2425 ✓ should return the forms that can be assigned to a role
2426 ✓ should return empty if there are not forms to assign
2427 ✓ should return empty if the forms are not assignable
2428 getServiceToRefer
2429 ✓ should return the service to refer
2430 ✓ should return empty if there is not a service to refer
2431
2432 <RecordForms /> - utils
2433 compactValues
2434 ✓ returns object of values that changed
2435
2436 <AddRecordMenu /> record-list/add-record-menu
2437 ✓ renders a single <Button /> because user only has access to a single module
2438 ✓ renders a single <Menu /> because user has access more than one module
2439
2440 <RecordList /> - constants
2441 ✓ should have known properties
2442
2443 <RecordList />
2444 ✓ renders record list table
2445 ✓ renders record view modal
2446 ✓ renders filters
2447 ✓ renders valid props for RecordListToolbar components
2448
2449 <RecordListToolbar />
2450 ✓ should render RecordListToolbar with AddRecordMenu
2451 ✓ should render RecordListToolbar with RecordActions
2452 ✓ renders valid props for RecordActions components
2453 ✓ should accept valid props
2454 if doesn't have permission to create
2455 ✓ should render RecordListToolbar without AddRecordMenu
2456
2457 <RecordListToolbar /> - constants
2458 ✓ should have known constant
2459
2460 <Fields /> - index
2461 ✓ should have known properties
2462
2463 <RecordList /> - Selectors
2464 getListHeaders
2465 ✓ should return list of headers allowed to the user
2466 ✓ should return false when there are not users in store
2467 getFields
2468 ✓ should return all fields
2469 ✓ should return undefined when there are not messages in store
2470 getMetadata
2471 ✓ should return all metadata
2472 ✓ should return an empty object when there are not metadata in store
2473
2474 <RecordList /> - buildTableColumns
2475 ✓ should return list of columns for table
2476
2477 <TransferRequest /> - Action Creators
2478 ✓ should have known action creators
2479 ✓ should check the 'saveTransferRequest' action creator to return the correct object
2480
2481 <TransferRequest /> - Actions
2482 ✓ should have known actions
2483
2484 <TransferRequest />
2485 ✓ should render ActionDialog
2486 ✓ should render Formik
2487 ✓ should accept valid props
2488
2489 <TransferRequest /> - Constants
2490 ✓ should have known constant
2491
2492 <TransferRequest /> - index
2493 ✓ should have known properties
2494
2495 <Transitions /> - Reducers
2496 ✓ should handle TRANSFER_REQUEST_FAILURE
2497 ✓ should handle TRANSFER_REQUEST_STARTED
2498 ✓ should handle TRANSFER_REQUEST_SUCCESS
2499
2500 <RequestForm />
2501 ✓ should render DisplayData
2502 ✓ should render Field
2503 ✓ should accept valid props
2504
2505 <RecordOwner />
2506 ✓ renders a RecordOwner component and its fields/>
2507 ✓ renders Form
2508 when record is new
2509 ✓ should render RecordOwner and its fields
2510 when record has not data for record_owner
2511 ✓ should render RecordOwner and its fields
2512
2513 <RecordOwner /> - constants
2514 ✓ should have known constant
2515
2516 <RecordOwner /> - index
2517 ✓ should have known properties
2518
2519 records - Action Creators
2520 ✓ should have known action creators
2521 ✓ should check the 'fetchRecord' action creator to return the correct object
2522 ✓ should check the 'fetchRecordsAlerts' action creator to return the correct object
2523 should check the 'saveRecord' action creator
2524 ✓ when path it's 'update' should return the correct object
2525 ✓ when path it's not 'update', the path and method should be different
2526
2527 records - Actions
2528 ✓ should have known actions
2529
2530 <RecordList /> - Reducers
2531 ✓ should handle RECORDS_STARTED
2532 ✓ should handle RECORDS_FAILURE
2533 ✓ should handle RECORDS_SUCCESS
2534 ✓ should handle RECORDS_FINISHED
2535 ✓ should handle SAVE_RECORD_STARTED
2536 ✓ should handle SAVE_RECORD_FINISHED
2537 ✓ should handle SAVE_RECORD_FAILURE
2538 ✓ should handle FETCH_RECORD_ALERTS
2539
2540 Records - Selectors
2541 selectRecord
2542 ✓ should return records
2543 ✓ should return empty object when records empty
2544 selectRecordAttribute
2545 ✓ should return records
2546 ✓ should return empty object when records empty
2547 selectRecordsByIndexes
2548 ✓ should return records
2549 ✓ should return empty array when records empty
2550 getSavingRecord
2551 ✓ should return saving state value
2552 ✓ should return false when there is not any saving state
2553 getLoadingRecordState
2554 ✓ should return loading state value
2555 ✓ should return false when there is not any loading state
2556 getRecordAlerts
2557 ✓ should return the list of alerts
2558 ✓ should return an empty array when there are not any options
2559
2560 <RecordForm /> - Action Creators
2561 ✓ should have known action creators
2562 ✓ should check the 'fetchSavedSearches' action creator to return the correct object
2563 ✓ should check the 'setSavedSearch' action creator to return the correct object
2564 ✓ should check the 'saveSearch' action creator to return the correct object
2565 ✓ should check the 'removeSavedSearch' action creator to return the correct object
2566
2567 <SavedSearches /> - Component
2568 ✓ renders the ListSavedSearches
2569
2570 <ListSavedSearches /> - Component
2571 ✓ renders 2 ListItem
2572
2573 <SavedSearches /> - Reducers
2574 ✓ should handle FETCH_SAVED_SEARCHES_SUCCESS
2575 ✓ should handle REMOVE_SAVED_SEARCH_SUCCESS
2576 ✓ should handle SAVE_SEARCH_SUCCESS
2577
2578 <SavedSearches /> - Selectors
2579 selectSavedSearches
2580 ✓ should return list of filters saved
2581 ✓ should return false when there is not any error
2582 selectSavedSearchesById
2583 ✓ should return saved filter
2584 ✓ should return false when there is not any error
2585
2586 <SearchableSelect />
2587 ✓ renders CustomAutoComplete
2588
2589 <SearchableSelect /> - Parts - Constants
2590 ✓ should have known constant
2591
2592 <Control />
2593 ✓ renders TextField
2594
2595 <CustomAutoComplete />
2596 ✓ renders NoSsr
2597 ✓ renders ReactSelect
2598 ✓ renders a single option and value prop if excludeEmpty is true (250ms)
2599 ✓ renders two options and value prop if excludeEmpty is false
2600
2601 <Menu />
2602 ✓ renders Paper
2603
2604 <MultiValue />
2605 ✓ renders Chip
2606 ✓ renders Chip with correct children
2607 ✓ renders valid props
2608
2609 <NoOptionsMessage />
2610 ✓ renders Typography
2611
2612 <Option />
2613 ✓ renders MenuItem
2614
2615 <Placeholder />
2616 ✓ renders Typography
2617
2618 <SingleValue />
2619 ✓ renders Typography
2620 ✓ renders Typography with correct children
2621 ✓ renders valid props
2622
2623 <ValueContainer />
2624 ✓ renders div
2625
2626 <SearchableSelect /> - Constants
2627 ✓ should have known constant
2628
2629 <SessionTimeoutDialog />
2630 ✓ should idle after 15 minutes
2631
2632 <Transitions /> - Action Creators
2633 ✓ should have known action creators
2634 ✓ should check the 'fetchTransitions' action creator to return the correct object
2635
2636 filters-builder - Actions
2637 ✓ should have known actions
2638
2639 <AssignmentsDetails />
2640 ✓ renders 2 <TransitionUser />
2641 ✓ renders 3 <Box />
2642 ✓ renders a <Divider />
2643
2644 <AssignmentsSummary />
2645 ✓ renders divs with its corresponding class
2646
2647 <MenuActions /> - Component
2648 Component Menu
2649 with referral transition type
2650 when user has access to all menus
2651 ✓ renders Menu
2652 ✓ renders MenuItem
2653 ✓ renders MenuItem with revoke option
2654 when user has not access to all menus
2655 ✓ renders Menu
2656 with transfer transition type
2657 when user has access to all menus
2658 ✓ renders Menu
2659 ✓ renders MenuItem
2660 ✓ renders MenuItem with revoke option
2661 when user has not access to all menus
2662 ✓ renders Menu
2663 Component RevokeModal
2664 ✓ renders RevokeModal
2665 ✓ renders valid props for RevokeModal components
2666 Component TransferApproval
2667 ✓ renders TransferApproval
2668 ✓ renders valid props for TransferApproval components
2669 Component ReferralAction
2670 ✓ renders ReferralAction
2671 ✓ renders valid props for ReferralAction components
2672
2673 <MenuActions /> - transitions/components/menu-actions/constants
2674 ✓ should have known properties
2675
2676 <MenuActions /> - transitions/components/menu-actions/index
2677 ✓ should have known properties
2678
2679 <RevokeModal /> - transitions/components/revoke-modal/action-creators
2680 ✓ should have known action creators
2681 ✓ should check the 'revokeTransition' action creator to return the correct object
2682
2683 <RevokeModal /> - transitions/components/revoke-modal/actions
2684 ✓ should have known properties
2685
2686 <RevokeModal /> - Component
2687 ✓ renders ActionDialog component
2688
2689 <RevokeModal /> - transitions/components/revoke-modal/constants
2690 ✓ should have known properties
2691
2692 <RevokeModal /> - transitions/components/revoke-modal/index
2693 ✓ should have known properties
2694
2695 <RevokeModal /> - transitions/components/revoke-modal/reducer
2696 ✓ should handle REVOKE_TRANSITION_SUCCESS
2697
2698 <Transitions /> - Constants
2699 ✓ should have known constant
2700
2701 <Transitions /> - Component
2702 ✓ renders Transitions component
2703 ✓ renders 2 TransitionPanel
2704 ✓ renders a Assignments components
2705 ✓ renders a Transfers components
2706 ✓ renders TransferRequests components
2707
2708 <Transitions /> - index
2709 ✓ should have known properties
2710
2711 <Transitions /> - Reducers
2712 ✓ should handle FETCH_TRANSITIONS
2713
2714 <ReferralDetail />
2715 ✓ renders 2 <TransitionUser />
2716 ✓ renders 5 <Box />
2717 ✓ renders a <Divider />
2718 with status
2719 when is rejected
2720 ✓ should render rejected reason
2721 when is pending, done, in_progress, accepted
2722 ✓ should render rejected reason
2723
2724 <ReferralAction /> - Action Creators
2725 ✓ should have known action creators
2726 ✓ should check that 'referralDone' action creator returns the correct object
2727
2728 <ReferralAction /> - Actions
2729 ✓ should have known actions
2730
2731 <ReferralAction /> - Component
2732 ✓ renders ReferralAction component
2733
2734 <ReferralAction /> - Reducers
2735 ✓ should handle REFERRAL_DONE_SUCCESS
2736
2737 <ReferralSummary />
2738 ✓ renders divs with its corresponding class
2739
2740 <Transitions /> - Selectors
2741 selectTransitions
2742 ✓ should return list of transitions
2743 ✓ should return empty list when no transitions
2744
2745 <ReferralDetail />
2746 ✓ renders 2 <TransitionUser />
2747 ✓ renders 5 <Box />
2748 ✓ renders a <Divider />
2749 with status
2750 when is rejected
2751 ✓ should render rejected reason
2752 when is pending, done, in_progress, accepted
2753 ✓ should render rejected reason
2754
2755 <TransferRequestSummary />
2756 ✓ renders divs with its corresponding class
2757
2758 <TransferApproval /> - Action Creators
2759 ✓ should have known action creators
2760 ✓ should check that 'approvalTransfer' action creator returns the correct object
2761
2762 <TransferApproval /> - Actions
2763 ✓ should have known actions
2764
2765 <TransferApproval /> - Component
2766 ✓ renders Transitions component
2767
2768 <TransferApproval /> - Reducers
2769 ✓ should handle APPROVE_TRANSFER_SUCCESS
2770
2771 <TransferDetails />
2772 ✓ renders 2 <TransitionUser />
2773 ✓ renders 5 <Box />
2774 ✓ renders a <Divider />
2775 with status
2776 when is rejected
2777 ✓ should render rejected reason
2778 when is pending, done, in_progress, accepted
2779 ✓ should render rejected reason
2780
2781 <TransferSummary />
2782 ✓ renders divs with it correponds class
2783
2784 <TransitionPanel />
2785 ✓ renders a <p> as children of TransitionPanel
2786
2787 <TransitionStatus />
2788 ✓ renders a Chip TransitionStatus
2789
2790 <TransitionUser />
2791 ✓ renders a Box component inside of TransitionUser
2792
2793 User - Action Creators
2794 ✓ should have known action creators
2795 ✓ should check the 'setAuthenticatedUser' action creator to return the correct object
2796 ✓ should check the 'setUser' action creator to return the correct object
2797 ✓ should check the 'fetchAuthenticatedUserData' action creator to return the correct object
2798 ✓ should check the 'attemptSignout' action creator
2799 ✓ should check the 'checkUserAuthentication' action creator to return the correct object
2800 ✓ should check the 'refreshToken' action creator to return the correct object
2801
2802 User - Actions
2803 ✓ should have known actions
2804
2805 Verifying user constant
2806 ✓ should have known constant
2807
2808 User - index
2809 ✓ should have known exported properties
2810
2811 User - Reducers
2812 ✓ should handle SET_AUTHENTICATED_USER
2813 ✓ should handle LOGOUT_SUCCESS
2814 ✓ should handle FETCH_USER_DATA_SUCCESS
2815
2816 User - Selectors
2817 with hasUserPermissions
2818 ✓ should return if user has permissions
2819 ✓ should return false if permissions not set
2820 with getPermissionsByRecord
2821 ✓ should return permissions if they're set
2822 ✓ should not return permissions if not set
2823 with currentUser
2824 ✓ should return current user if username is set
2825 ✓ should return undefined if username is no set
2826 with getPermissions
2827 ✓ should return current user if username is set
2828 ✓ should return undefined if username is no set
2829 getIsAuthenticated
2830 ✓ should return isAuthenticated
2831 ✓ should return false when user not autenticated
2832
2833 Verifying config constant
2834 ✓ should have known constant
2835 ✓ should have correct constant value
2836
2837 component-helpers
2838 dataToJS
2839 ✓ should convert data to plain JS from Map
2840 ✓ should convert data to plain JS from List
2841 valuesToSearchableSelect
2842 ✓ should convert values to searchableSelect value with locale en
2843 ✓ should convert values to searchableSelect value with locale es
2844 compare
2845 ✓ should return true if two objects are equal
2846 ✓ should return false if two objects are not equal
2847
2848 libs/conditional-wrapper
2849 ✓ wraps component with props if condition true
2850 ✓ does not wrap component if condition false
2851
2852 libs/index
2853 ✓ exports an object
2854 properties
2855 ✓ exports 'arrayToObject'
2856 ✓ exports 'compare'
2857 ✓ exports 'dataToJS'
2858 ✓ exports 'keyIn'
2859 ✓ exports 'listAttachmentFields'
2860 ✓ exports 'listEntriesToRecord'
2861 ✓ exports 'mapEntriesToRecord'
2862 ✓ exports 'mapListToObject'
2863 ✓ exports 'mapObjectPropertiesToRecords'
2864 ✓ exports 'mergeRecord'
2865 ✓ exports 'namespaceActions'
2866 ✓ exports 'rejectKeys'
2867 ✓ exports 'toBase64'
2868 ✓ exports 'useThemeHelper'
2869 ✓ exports 'valuesToSearchableSelect'
2870 ✓ exports 'ConditionalWrapper'
2871
2872 Verifying config constant
2873 ✓ should have known constant
2874 ✓ should have known RESOURCES
2875 ✓ should have CREATE_REPORTS
2876 ✓ should have READ_REPORTS
2877 ✓ should have EXPORT_CUSTOM
2878 ✓ should have CREATE_RECORDS
2879 ✓ should have WRITE_RECORDS
2880 ✓ should have READ_RECORDS
2881 ✓ should have ENABLE_DISABLE_RECORD
2882 ✓ should have FLAG_RECORDS
2883 ✓ should have ADD_NOTE
2884 ✓ should have DISPLAY_VIEW_PAGE
2885 ✓ should have SHOW_TASKS
2886 ✓ should have SHOW_EXPORTS
2887 ✓ should have DASH_APPROVALS_PENDING
2888 ✓ should have DASH_APPROVALS
2889 ✓ should have GROUP_PERMISSIONS
2890 checkPermissions
2891 ✓ should send true because current permission it's allowed
2892 ✓ should send false because current permission is not allowed
2893
2894 reducer-helpers
2895 mergeRecord
2896 ✓ should merge deep object and update/concat arrays
2897
2898 reset-form
2899 ✓ should have known properties
2900
2901 submit-form
2902 ✓ should have known properties
2903
2904 middleware/offline-middleware.js
2905 passes through
2906 ✓ non api action
2907 ✓ online
2908 offline GET
2909 ✓ invokes retrieveData with args
2910 offline POST,PUT,PATCH,DELETE
2911 ✓ queues actions
2912 ✓ skips previously queued actions
2913
2914 middleware/utils/default-error-callback.js
2915 ✓ calls handleRestCallback if response not 401
2916 ✓ extracts errors from json
2917 ✓ does not call handleRestCallback if response 401
2918
2919 middleware/utils/generate-record-properties.js
2920 subforms
2921 ✓ generates unique_id for new subforms
2922 records
2923 ✓ generates full name if no name
2924 ✓ returns name
2925 ✓ does not generate new id if present
2926 ✓ generates missing record properties
2927 cases
2928 ✓ generates case_id_display
2929
2930 middleware/utils/handle-success-callback.js
2931 ✓ pass through no successCallback
2932 ✓ handles successCallback as array
2933 success payload
2934 ✓ successCallback === 'object'
2935 ✓ else
2936 redirects
2937 ✓ pass through if from queue
2938 ✓ from response id
2939 ✓ to edit
2940
2941 middleware/utils/index.js
2942 known properties
2943 ✓ exports 'defaultErrorCallback'
2944 ✓ exports 'generateRecordProperties'
2945 ✓ exports 'handleRestCallback'
2946 ✓ exports 'isOnline'
2947 ✓ exports 'partitionObject'
2948 ✓ exports 'processAttachments'
2949 ✓ exports 'startSignout'
2950 ✓ exports 'retrieveData'
2951 ✓ exports 'queueData'
2952
2953 middleware/utils/is-online.js
2954 ✓ returns online value from redux state
2955
2956 middleware/utils/offline-dispatch-success.js
2957 ✓ dispatch success and callbacks
2958 ✓ format payload based on passed key/id
2959 ✓ format payload based on passed key/id (array)
2960
2961 middleware/utils/partition-object.js
2962 ✓ is a function with 2 params
2963 ✓ handles when filterFn is always false
2964 ✓ handles when filterFn is always true
2965 ✓ handles when filterFn only test value
2966 ✓ handles when filterFn has both (value,key)
2967
2968 middleware/utils/retrieve-data.js
2969 ✓ sync indexeddb and calls offlineDispatchSuccess
2970 ✓ displays errors in console
2971
2972 middleware/utils/retrieve-data.js
2973 ✓ sync indexeddb and calls offlineDispatchSuccess
2974 ✓ displays errors in console
2975
2976 middleware/utils/start-signout.js
2977 ✓ triggers msal signout if using identity provider
2978 ✓ triggers msal signout if using identity provider
2979
2980 middleware/utils/with-generated-properties.js
2981 ✓ build action with generated properties
2982
2983 app/javascript/test/index
2984 ✓ exports property 'setupMockFieldComponent'
2985 ✓ exports property 'setupMockFormComponent'
2986 ✓ exports property 'setupMountedComponent'
2987 ✓ exports property 'setupMountedThemeComponent'
2988 ✓ exports property 'spy'
2989 ✓ exports property 'stub'
2990 ✓ exports property 'fake'
2991 ✓ exports property 'tick'
2992 ✓ exports property 'useFakeTimers'
2993 ✓ exports property 'mock'
2994 ✓ exports property 'createSimpleMount'
2995 ✓ exports property 'createMockStore'
2996 ✓ exports property 'createMiddleware'
2997
2998 app/javascript/test/utils/index
2999 ✓ exports property 'setupMockFieldComponent'
3000 ✓ exports property 'setupMockFormComponent'
3001 ✓ exports property 'setupMountedComponent'
3002 ✓ exports property 'setupMountedThemeComponent'
3003 ✓ exports property 'tick'
3004 ✓ exports property 'createSimpleMount'
3005 ✓ exports property 'createMiddleware'
3006 ✓ exports property 'createMockStore'
3007
3008
3009 1598 passing (3m)
3010 17 pending
3011 1 failing
3012
3013 1) <DateHeader /> - Form - Subforms
3014 should render a date value formatted to DATE_FORMAT, when includeTime is false:
3015
3016 AssertionError: expected '03-Oct-2019' to equal '02-Oct-2019'
3017 + expected - actual
3018
3019 -03-Oct-2019
3020 +02-Oct-2019
3021
3022 at Context.<anonymous> (app/javascript/components/record-form/form/subforms/subform-header-date/component.unit.test.js:16:36)
3023 at processImmediate (internal/timers.js:456:21)