1// Jest Snapshot v1, https://goo.gl/fbAQLP
2
3exports[`Tree Don't auto expand root with very large number of children 1`] = `
4Array [
5  "key-A",
6  "key-B",
7  "key-E",
8  "key-F",
9  "key-G",
10  "key-C",
11  "key-H",
12  "key-I",
13  "key-D",
14  "key-J",
15  "key-M",
16  "key-N",
17]
18`;
19
20exports[`Tree active item - focus is inside the tree node and then blur 1`] = `
21"
22▼ A
23|  ▼ B
24|  |  ▼ E
25|  |  |    K
26|  |  |    [L anchor]
27|  |    F
28|  |    G
29|  ▼ C
30|  |    H
31|  |    I
32|  ▼ D
33|  |    J
34▼ M
35|  ▼ N
36|  |    O
37"
38`;
39
40exports[`Tree active item - focus is inside the tree node when possible 1`] = `
41"
42▼ A
43|  ▼ B
44|  |  ▼ E
45|  |  |    K
46|  |  |    [L anchor]
47|  |    F
48|  |    G
49|  ▼ C
50|  |    H
51|  |    I
52|  ▼ D
53|  |    J
54▼ M
55|  ▼ N
56|  |    O
57"
58`;
59
60exports[`Tree active item - focus is inside the tree node when possible 2`] = `
61"
62▼ A
63|  ▼ B
64|  |  ▼ E
65|  |  |    K
66|  |  |    [L anchor]
67|  |    F
68|  |    G
69|  ▼ C
70|  |    H
71|  |    I
72|  ▼ D
73|  |    J
74▼ M
75|  ▼ N
76|  |    O
77"
78`;
79
80exports[`Tree active item - navigate inside the tree node 1`] = `
81"
82▼ A
83|  ▼ B
84|  |  ▼ E
85|  |  |    K
86|  |  |    [L anchor]
87|  |    F
88|  |    G
89|  ▼ C
90|  |    H
91|  |    I
92|  ▼ D
93|  |    J
94▼ M
95|  ▼ N
96|  |    O
97"
98`;
99
100exports[`Tree active item - navigate inside the tree node 2`] = `
101"
102▼ A
103|  ▼ B
104|  |  ▼ E
105|  |  |    K
106|  |  |    [L anchor]
107|  |    F
108|  |    G
109|  ▼ C
110|  |    H
111|  |    I
112|  ▼ D
113|  |    J
114▼ M
115|  ▼ N
116|  |    O
117"
118`;
119
120exports[`Tree active item - navigate inside the tree node 3`] = `
121"
122▼ A
123|  ▼ B
124|  |  ▼ E
125|  |  |    K
126|  |  |    [L anchor]
127|  |    F
128|  |    G
129|  ▼ C
130|  |    H
131|  |    I
132|  ▼ D
133|  |    J
134▼ M
135|  ▼ N
136|  |    O
137"
138`;
139
140exports[`Tree active item - renders as expected when clicking away 1`] = `
141"
142▼ A
143|  ▼ B
144|  |  ▼ E
145|  |  |    K
146|  |  |    L
147|  |    F
148|  |    [G]
149|  ▼ C
150|  |    H
151|  |    I
152|  ▼ D
153|  |    J
154▼ M
155|  ▼ N
156|  |    O
157"
158`;
159
160exports[`Tree active item - renders as expected when clicking away 2`] = `
161"
162▶︎ [A]
163▼ M
164|  ▼ N
165|  |    O
166"
167`;
168
169exports[`Tree active item - renders as expected when moving away with keyboard 1`] = `
170"
171▼ A
172|  ▼ B
173|  |  ▼ E
174|  |  |    K
175|  |  |    [L]
176|  |    F
177|  |    G
178|  ▼ C
179|  |    H
180|  |    I
181|  ▼ D
182|  |    J
183▼ M
184|  ▼ N
185|  |    O
186"
187`;
188
189exports[`Tree active item - renders as expected when tree blurs 1`] = `
190"
191▼ A
192|  ▼ B
193|  |  ▼ E
194|  |  |    K
195|  |  |    L
196|  |    F
197|  |    [G]
198|  ▼ C
199|  |    H
200|  |    I
201|  ▼ D
202|  |    J
203▼ M
204|  ▼ N
205|  |    O
206"
207`;
208
209exports[`Tree active item - renders as expected when tree blurs 2`] = `
210"
211▼ A
212|  ▼ B
213|  |  ▼ E
214|  |  |    K
215|  |  |    L
216|  |    F
217|  |    [G]
218|  ▼ C
219|  |    H
220|  |    I
221|  ▼ D
222|  |    J
223▼ M
224|  ▼ N
225|  |    O
226"
227`;
228
229exports[`Tree active item - renders as expected when using keyboard and Enter 1`] = `
230"
231▼ A
232|  ▼ B
233|  |  ▼ E
234|  |  |    K
235|  |  |    [L]
236|  |    F
237|  |    G
238|  ▼ C
239|  |    H
240|  |    I
241|  ▼ D
242|  |    J
243▼ M
244|  ▼ N
245|  |    O
246"
247`;
248
249exports[`Tree active item - renders as expected when using keyboard and Space 1`] = `
250"
251▼ A
252|  ▼ B
253|  |  ▼ E
254|  |  |    K
255|  |  |    [L]
256|  |    F
257|  |    G
258|  ▼ C
259|  |    H
260|  |    I
261|  ▼ D
262|  |    J
263▼ M
264|  ▼ N
265|  |    O
266"
267`;
268
269exports[`Tree calls shouldItemUpdate when provided 1`] = `
270"
271▶︎ A
272▶︎ M
273"
274`;
275
276exports[`Tree calls shouldItemUpdate when provided 2`] = `
277"
278▶︎ A
279▶︎ M
280"
281`;
282
283exports[`Tree ignores key strokes when pressing modifiers 1`] = `
284"
285▼ A
286|  ▼ B
287|  |  ▼ E
288|  |  |    K
289|  |  |    [L]
290|  |    F
291|  |    G
292|  ▼ C
293|  |    H
294|  |    I
295|  ▼ D
296|  |    J
297▼ M
298|  ▼ N
299|  |    O
300"
301`;
302
303exports[`Tree ignores key strokes when pressing modifiers 2`] = `
304"
305▼ A
306|  ▼ B
307|  |  ▼ E
308|  |  |    K
309|  |  |    [L]
310|  |    F
311|  |    G
312|  ▼ C
313|  |    H
314|  |    I
315|  ▼ D
316|  |    J
317▼ M
318|  ▼ N
319|  |    O
320"
321`;
322
323exports[`Tree ignores key strokes when pressing modifiers 3`] = `
324"
325▼ A
326|  ▼ B
327|  |  ▼ E
328|  |  |    K
329|  |  |    [L]
330|  |    F
331|  |    G
332|  ▼ C
333|  |    H
334|  |    I
335|  ▼ D
336|  |    J
337▼ M
338|  ▼ N
339|  |    O
340"
341`;
342
343exports[`Tree ignores key strokes when pressing modifiers 4`] = `
344"
345▼ A
346|  ▼ B
347|  |  ▼ E
348|  |  |    K
349|  |  |    [L]
350|  |    F
351|  |    G
352|  ▼ C
353|  |    H
354|  |    I
355|  ▼ D
356|  |    J
357▼ M
358|  ▼ N
359|  |    O
360"
361`;
362
363exports[`Tree ignores key strokes when pressing modifiers 5`] = `
364"
365▼ A
366|  ▼ B
367|  |  ▼ E
368|  |  |    K
369|  |  |    [L]
370|  |    F
371|  |    G
372|  ▼ C
373|  |    H
374|  |    I
375|  ▼ D
376|  |    J
377▼ M
378|  ▼ N
379|  |    O
380"
381`;
382
383exports[`Tree ignores key strokes when pressing modifiers 6`] = `
384"
385▼ A
386|  ▼ B
387|  |  ▼ E
388|  |  |    K
389|  |  |    [L]
390|  |    F
391|  |    G
392|  ▼ C
393|  |    H
394|  |    I
395|  ▼ D
396|  |    J
397▼ M
398|  ▼ N
399|  |    O
400"
401`;
402
403exports[`Tree ignores key strokes when pressing modifiers 7`] = `
404"
405▼ A
406|  ▼ B
407|  |  ▼ E
408|  |  |    K
409|  |  |    [L]
410|  |    F
411|  |    G
412|  ▼ C
413|  |    H
414|  |    I
415|  ▼ D
416|  |    J
417▼ M
418|  ▼ N
419|  |    O
420"
421`;
422
423exports[`Tree ignores key strokes when pressing modifiers 8`] = `
424"
425▼ A
426|  ▼ B
427|  |  ▼ E
428|  |  |    K
429|  |  |    [L]
430|  |    F
431|  |    G
432|  ▼ C
433|  |    H
434|  |    I
435|  ▼ D
436|  |    J
437▼ M
438|  ▼ N
439|  |    O
440"
441`;
442
443exports[`Tree ignores key strokes when pressing modifiers 9`] = `
444"
445▼ A
446|  ▼ B
447|  |  ▼ E
448|  |  |    K
449|  |  |    [L]
450|  |    F
451|  |    G
452|  ▼ C
453|  |    H
454|  |    I
455|  ▼ D
456|  |    J
457▼ M
458|  ▼ N
459|  |    O
460"
461`;
462
463exports[`Tree ignores key strokes when pressing modifiers 10`] = `
464"
465▼ A
466|  ▼ B
467|  |  ▼ E
468|  |  |    K
469|  |  |    [L]
470|  |    F
471|  |    G
472|  ▼ C
473|  |    H
474|  |    I
475|  ▼ D
476|  |    J
477▼ M
478|  ▼ N
479|  |    O
480"
481`;
482
483exports[`Tree ignores key strokes when pressing modifiers 11`] = `
484"
485▼ A
486|  ▼ B
487|  |  ▼ E
488|  |  |    K
489|  |  |    [L]
490|  |    F
491|  |    G
492|  ▼ C
493|  |    H
494|  |    I
495|  ▼ D
496|  |    J
497▼ M
498|  ▼ N
499|  |    O
500"
501`;
502
503exports[`Tree ignores key strokes when pressing modifiers 12`] = `
504"
505▼ A
506|  ▼ B
507|  |  ▼ E
508|  |  |    K
509|  |  |    [L]
510|  |    F
511|  |    G
512|  ▼ C
513|  |    H
514|  |    I
515|  ▼ D
516|  |    J
517▼ M
518|  ▼ N
519|  |    O
520"
521`;
522
523exports[`Tree ignores key strokes when pressing modifiers 13`] = `
524"
525▼ A
526|  ▼ B
527|  |  ▼ E
528|  |  |    K
529|  |  |    [L]
530|  |    F
531|  |    G
532|  ▼ C
533|  |    H
534|  |    I
535|  ▼ D
536|  |    J
537▼ M
538|  ▼ N
539|  |    O
540"
541`;
542
543exports[`Tree ignores key strokes when pressing modifiers 14`] = `
544"
545▼ A
546|  ▼ B
547|  |  ▼ E
548|  |  |    K
549|  |  |    [L]
550|  |    F
551|  |    G
552|  ▼ C
553|  |    H
554|  |    I
555|  ▼ D
556|  |    J
557▼ M
558|  ▼ N
559|  |    O
560"
561`;
562
563exports[`Tree ignores key strokes when pressing modifiers 15`] = `
564"
565▼ A
566|  ▼ B
567|  |  ▼ E
568|  |  |    K
569|  |  |    [L]
570|  |    F
571|  |    G
572|  ▼ C
573|  |    H
574|  |    I
575|  ▼ D
576|  |    J
577▼ M
578|  ▼ N
579|  |    O
580"
581`;
582
583exports[`Tree ignores key strokes when pressing modifiers 16`] = `
584"
585▼ A
586|  ▼ B
587|  |  ▼ E
588|  |  |    K
589|  |  |    [L]
590|  |    F
591|  |    G
592|  ▼ C
593|  |    H
594|  |    I
595|  ▼ D
596|  |    J
597▼ M
598|  ▼ N
599|  |    O
600"
601`;
602
603exports[`Tree ignores key strokes when pressing modifiers 17`] = `
604"
605▼ A
606|  ▼ B
607|  |  ▼ E
608|  |  |    K
609|  |  |    [L]
610|  |    F
611|  |    G
612|  ▼ C
613|  |    H
614|  |    I
615|  ▼ D
616|  |    J
617▼ M
618|  ▼ N
619|  |    O
620"
621`;
622
623exports[`Tree renders arrows as expected when nodes are collapsed 1`] = `
624"
625▶︎ A
626▶︎ M
627"
628`;
629
630exports[`Tree renders arrows as expected when nodes are expanded 1`] = `
631"
632▼ A
633|  ▼ B
634|  |  ▼ E
635|  |  |    K
636|  |  |    L
637|  |    F
638|  |    G
639|  ▼ C
640|  |    H
641|  |    I
642|  ▼ D
643|  |    J
644▼ M
645|  ▼ N
646|  |    O
647"
648`;
649
650exports[`Tree renders as expected 1`] = `
651"
652▼ A
653|  ▼ B
654|  |  ▼ E
655|  |  |    K
656|  |  |    L
657|  |    F
658|  |    G
659|  ▼ C
660|  |    H
661|  |    I
662|  ▼ D
663|  |    J
664▼ M
665|  ▼ N
666|  |    O
667"
668`;
669
670exports[`Tree renders as expected navigating down with keyboard on last node 1`] = `
671"
672▼ A
673|  ▼ B
674|  |  ▼ E
675|  |  |    K
676|  |  |    L
677|  |    F
678|  |    G
679|  ▼ C
680|  |    H
681|  |    I
682|  ▼ D
683|  |    J
684▼ M
685|  ▼ N
686|  |    [O]
687"
688`;
689
690exports[`Tree renders as expected navigating down with keyboard on last node 2`] = `
691"
692▼ A
693|  ▼ B
694|  |  ▼ E
695|  |  |    K
696|  |  |    L
697|  |    F
698|  |    G
699|  ▼ C
700|  |    H
701|  |    I
702|  ▼ D
703|  |    J
704▼ M
705|  ▼ N
706|  |    [O]
707"
708`;
709
710exports[`Tree renders as expected navigating up with the keyboard on a root 1`] = `
711"
712▼ [A]
713|  ▼ B
714|  |  ▼ E
715|  |  |    K
716|  |  |    L
717|  |    F
718|  |    G
719|  ▼ C
720|  |    H
721|  |    I
722|  ▼ D
723|  |    J
724▼ M
725|  ▼ N
726|  |    O
727"
728`;
729
730exports[`Tree renders as expected navigating up with the keyboard on a root 2`] = `
731"
732▼ [A]
733|  ▼ B
734|  |  ▼ E
735|  |  |    K
736|  |  |    L
737|  |    F
738|  |    G
739|  ▼ C
740|  |    H
741|  |    I
742|  ▼ D
743|  |    J
744▼ M
745|  ▼ N
746|  |    O
747"
748`;
749
750exports[`Tree renders as expected navigating with arrows on unexpandable roots 1`] = `
751"
752  [A]
753  M
754"
755`;
756
757exports[`Tree renders as expected navigating with arrows on unexpandable roots 2`] = `
758"
759  A
760  [M]
761"
762`;
763
764exports[`Tree renders as expected navigating with arrows on unexpandable roots 3`] = `
765"
766  [A]
767  M
768"
769`;
770
771exports[`Tree renders as expected when given a focused item 1`] = `
772"
773▼ A
774|  ▼ B
775|  |  ▼ E
776|  |  |    K
777|  |  |    L
778|  |    F
779|  |    [G]
780|  ▼ C
781|  |    H
782|  |    I
783|  ▼ D
784|  |    J
785▼ M
786|  ▼ N
787|  |    O
788"
789`;
790
791exports[`Tree renders as expected when given a focused item 2`] = `
792"
793▶︎ [A]
794▼ M
795|  ▼ N
796|  |    O
797"
798`;
799
800exports[`Tree renders as expected when given a focused item 3`] = `
801"
802▼ [A]
803|  ▼ B
804|  |  ▼ E
805|  |  |    K
806|  |  |    L
807|  |    F
808|  |    G
809|  ▼ C
810|  |    H
811|  |    I
812|  ▼ D
813|  |    J
814▼ M
815|  ▼ N
816|  |    O
817"
818`;
819
820exports[`Tree renders as expected when given a focused item 4`] = `
821"
822▼ A
823|  ▼ B
824|  |  ▼ E
825|  |  |    K
826|  |  |    L
827|  |    F
828|  |    G
829|  ▼ C
830|  |    H
831|  |    I
832|  ▼ D
833|  |    J
834▼ M
835|  ▼ N
836|  |    O
837"
838`;
839
840exports[`Tree renders as expected when navigating down with the keyboard 1`] = `
841"
842▼ A
843|  ▼ B
844|  |  ▼ E
845|  |  |    [K]
846|  |  |    L
847|  |    F
848|  |    G
849|  ▼ C
850|  |    H
851|  |    I
852|  ▼ D
853|  |    J
854▼ M
855|  ▼ N
856|  |    O
857"
858`;
859
860exports[`Tree renders as expected when navigating down with the keyboard 2`] = `
861"
862▼ A
863|  ▼ B
864|  |  ▼ E
865|  |  |    K
866|  |  |    [L]
867|  |    F
868|  |    G
869|  ▼ C
870|  |    H
871|  |    I
872|  ▼ D
873|  |    J
874▼ M
875|  ▼ N
876|  |    O
877"
878`;
879
880exports[`Tree renders as expected when navigating down with the keyboard 3`] = `
881"
882▼ A
883|  ▼ B
884|  |  ▼ E
885|  |  |    K
886|  |  |    L
887|  |    [F]
888|  |    G
889|  ▼ C
890|  |    H
891|  |    I
892|  ▼ D
893|  |    J
894▼ M
895|  ▼ N
896|  |    O
897"
898`;
899
900exports[`Tree renders as expected when navigating up with the keyboard 1`] = `
901"
902▼ A
903|  ▼ B
904|  |  ▼ E
905|  |  |    K
906|  |  |    [L]
907|  |    F
908|  |    G
909|  ▼ C
910|  |    H
911|  |    I
912|  ▼ D
913|  |    J
914▼ M
915|  ▼ N
916|  |    O
917"
918`;
919
920exports[`Tree renders as expected when navigating up with the keyboard 2`] = `
921"
922▼ A
923|  ▼ B
924|  |  ▼ E
925|  |  |    [K]
926|  |  |    L
927|  |    F
928|  |    G
929|  ▼ C
930|  |    H
931|  |    I
932|  ▼ D
933|  |    J
934▼ M
935|  ▼ N
936|  |    O
937"
938`;
939
940exports[`Tree renders as expected when navigating up with the keyboard 3`] = `
941"
942▼ A
943|  ▼ B
944|  |  ▼ [E]
945|  |  |    K
946|  |  |    L
947|  |    F
948|  |    G
949|  ▼ C
950|  |    H
951|  |    I
952|  ▼ D
953|  |    J
954▼ M
955|  ▼ N
956|  |    O
957"
958`;
959
960exports[`Tree renders as expected when navigating with home/end 1`] = `
961"
962▶︎ A
963▶︎ [M]
964"
965`;
966
967exports[`Tree renders as expected when navigating with home/end 2`] = `
968"
969▶︎ [A]
970▶︎ M
971"
972`;
973
974exports[`Tree renders as expected when navigating with home/end 3`] = `
975"
976▶︎ [A]
977▶︎ M
978"
979`;
980
981exports[`Tree renders as expected when navigating with home/end 4`] = `
982"
983▶︎ A
984▶︎ [M]
985"
986`;
987
988exports[`Tree renders as expected when navigating with home/end 5`] = `
989"
990▶︎ A
991▶︎ [M]
992"
993`;
994
995exports[`Tree renders as expected when navigating with home/end 6`] = `
996"
997▶︎ A
998▼ [M]
999|  ▶︎ N
1000"
1001`;
1002
1003exports[`Tree renders as expected when navigating with home/end 7`] = `
1004"
1005▶︎ A
1006▼ M
1007|  ▶︎ [N]
1008"
1009`;
1010
1011exports[`Tree renders as expected when navigating with home/end 8`] = `
1012"
1013▶︎ A
1014▼ M
1015|  ▶︎ [N]
1016"
1017`;
1018
1019exports[`Tree renders as expected when navigating with home/end 9`] = `
1020"
1021▶︎ [A]
1022▼ M
1023|  ▶︎ N
1024"
1025`;
1026
1027exports[`Tree renders as expected when navigating with left arrows on roots 1`] = `
1028"
1029▶︎ A
1030▶︎ [M]
1031"
1032`;
1033
1034exports[`Tree renders as expected when navigating with left arrows on roots 2`] = `
1035"
1036▶︎ [A]
1037▶︎ M
1038"
1039`;
1040
1041exports[`Tree renders as expected when navigating with left arrows on roots 3`] = `
1042"
1043▶︎ [A]
1044▶︎ M
1045"
1046`;
1047
1048exports[`Tree renders as expected when navigating with right/left arrows 1`] = `
1049"
1050▼ A
1051|  ▼ B
1052|  |  ▼ E
1053|  |  |    K
1054|  |  |    [L]
1055|  |    F
1056|  |    G
1057|  ▼ C
1058|  |    H
1059|  |    I
1060|  ▼ D
1061|  |    J
1062▼ M
1063|  ▼ N
1064|  |    O
1065"
1066`;
1067
1068exports[`Tree renders as expected when navigating with right/left arrows 2`] = `
1069"
1070▼ A
1071|  ▼ B
1072|  |  ▼ [E]
1073|  |  |    K
1074|  |  |    L
1075|  |    F
1076|  |    G
1077|  ▼ C
1078|  |    H
1079|  |    I
1080|  ▼ D
1081|  |    J
1082▼ M
1083|  ▼ N
1084|  |    O
1085"
1086`;
1087
1088exports[`Tree renders as expected when navigating with right/left arrows 3`] = `
1089"
1090▼ A
1091|  ▼ B
1092|  |  ▶︎ [E]
1093|  |    F
1094|  |    G
1095|  ▼ C
1096|  |    H
1097|  |    I
1098|  ▼ D
1099|  |    J
1100▼ M
1101|  ▼ N
1102|  |    O
1103"
1104`;
1105
1106exports[`Tree renders as expected when navigating with right/left arrows 4`] = `
1107"
1108▼ A
1109|  ▼ B
1110|  |  ▼ [E]
1111|  |  |    K
1112|  |  |    L
1113|  |    F
1114|  |    G
1115|  ▼ C
1116|  |    H
1117|  |    I
1118|  ▼ D
1119|  |    J
1120▼ M
1121|  ▼ N
1122|  |    O
1123"
1124`;
1125
1126exports[`Tree renders as expected when navigating with right/left arrows 5`] = `
1127"
1128▼ A
1129|  ▼ B
1130|  |  ▼ E
1131|  |  |    [K]
1132|  |  |    L
1133|  |    F
1134|  |    G
1135|  ▼ C
1136|  |    H
1137|  |    I
1138|  ▼ D
1139|  |    J
1140▼ M
1141|  ▼ N
1142|  |    O
1143"
1144`;
1145
1146exports[`Tree renders as expected when passed autoDepth:1 1`] = `
1147"
1148▼ A
1149|  ▶︎ B
1150|  ▶︎ C
1151|  ▶︎ D
1152▼ M
1153|  ▶︎ N
1154"
1155`;
1156
1157exports[`Tree renders as expected with collapsed nodes 1`] = `
1158"
1159▶︎ A
1160▼ M
1161|  ▼ N
1162|  |    O
1163"
1164`;
1165
1166exports[`Tree uses isExpandable prop if it exists to render tree nodes 1`] = `
1167"
1168▶︎ A
1169  M
1170"
1171`;
1172