Skip to content

Commit a8ee43e

Browse files
committed
Update snapshot tests
1 parent b286596 commit a8ee43e

File tree

1 file changed

+283
-13
lines changed

1 file changed

+283
-13
lines changed

test/unit-tests/components/views/settings/tabs/user/__snapshots__/SidebarUserSettingsTab-test.tsx.snap

Lines changed: 283 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,25 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings with guest spa url
204204
class="_label_19upo_59"
205205
for="checkbox_wKpa6hpi3Y"
206206
>
207-
Rooms outside of a space
207+
<svg
208+
class="mx_SidebarUserSettingsTab_icon"
209+
fill="currentColor"
210+
height="1em"
211+
viewBox="0 0 24 24"
212+
width="1em"
213+
xmlns="http://www.w3.org/2000/svg"
214+
>
215+
<path
216+
d="m12.897 2.817 2.336 4.733 5.223.76a1 1 0 0 1 .555 1.705L17.23 13.7l.892 5.202a1 1 0 0 1-1.45 1.054L12 17.5l-4.672 2.456a1 1 0 0 1-1.451-1.054l.892-5.202-3.78-3.685a1 1 0 0 1 .555-1.706l5.223-.759 2.336-4.733a1 1 0 0 1 1.794 0"
217+
/>
218+
</svg>
219+
Favourites
208220
</label>
209221
<span
210222
class="_message_19upo_85 _help-message_19upo_91"
211223
id="«r9»"
212224
>
213-
Group all your rooms that aren't part of a space in one place.
225+
Group all your favourite rooms and people in one place.
214226
</span>
215227
</div>
216228
</div>
@@ -257,6 +269,129 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings with guest spa url
257269
<label
258270
class="_label_19upo_59"
259271
for="checkbox_EetmBG4yVC"
272+
>
273+
<svg
274+
class="mx_SidebarUserSettingsTab_icon"
275+
fill="currentColor"
276+
height="1em"
277+
viewBox="0 0 24 24"
278+
width="1em"
279+
xmlns="http://www.w3.org/2000/svg"
280+
>
281+
<path
282+
d="M12 15q-1.65 0-2.825-1.175T8 11t1.175-2.825T12 7t2.825 1.175T16 11t-1.175 2.825T12 15"
283+
/>
284+
<path
285+
d="M19.528 18.583A9.96 9.96 0 0 0 22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 2.52.933 4.824 2.472 6.583A9.98 9.98 0 0 0 12 22a9.98 9.98 0 0 0 7.528-3.417M8.75 16.388q-1.373.332-2.709.95a8 8 0 1 1 11.918 0 14.7 14.7 0 0 0-2.709-.95A13.8 13.8 0 0 0 12 16q-1.65 0-3.25.387"
286+
/>
287+
</svg>
288+
People
289+
</label>
290+
<span
291+
class="_message_19upo_85 _help-message_19upo_91"
292+
id="«rd»"
293+
>
294+
Group all your people in one place.
295+
</span>
296+
</div>
297+
</div>
298+
</form>
299+
<form
300+
class="_root_19upo_16"
301+
>
302+
<div
303+
class="_inline-field_19upo_32 mx_SidebarUserSettingsTab_checkbox"
304+
>
305+
<div
306+
class="_inline-field-control_19upo_44"
307+
>
308+
<div
309+
class="_container_1hel1_10"
310+
>
311+
<input
312+
aria-describedby="«rh»"
313+
class="_input_1hel1_18"
314+
id="checkbox_eEefiPqpMR"
315+
type="checkbox"
316+
/>
317+
<div
318+
class="_ui_1hel1_19"
319+
>
320+
<svg
321+
aria-hidden="true"
322+
fill="currentColor"
323+
height="1em"
324+
viewBox="0 0 24 24"
325+
width="1em"
326+
xmlns="http://www.w3.org/2000/svg"
327+
>
328+
<path
329+
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
330+
/>
331+
</svg>
332+
</div>
333+
</div>
334+
</div>
335+
<div
336+
class="_inline-field-body_19upo_38"
337+
>
338+
<label
339+
class="_label_19upo_59"
340+
for="checkbox_eEefiPqpMR"
341+
>
342+
Rooms outside of a space
343+
</label>
344+
<span
345+
class="_message_19upo_85 _help-message_19upo_91"
346+
id="«rh»"
347+
>
348+
Group all your rooms that aren't part of a space in one place.
349+
</span>
350+
</div>
351+
</div>
352+
</form>
353+
<form
354+
class="_root_19upo_16"
355+
>
356+
<div
357+
class="_inline-field_19upo_32 mx_SidebarUserSettingsTab_checkbox"
358+
>
359+
<div
360+
class="_inline-field-control_19upo_44"
361+
>
362+
<div
363+
class="_container_1hel1_10"
364+
>
365+
<input
366+
aria-describedby="«rl»"
367+
class="_input_1hel1_18"
368+
id="checkbox_MwbPDmfGtm"
369+
type="checkbox"
370+
/>
371+
<div
372+
class="_ui_1hel1_19"
373+
>
374+
<svg
375+
aria-hidden="true"
376+
fill="currentColor"
377+
height="1em"
378+
viewBox="0 0 24 24"
379+
width="1em"
380+
xmlns="http://www.w3.org/2000/svg"
381+
>
382+
<path
383+
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
384+
/>
385+
</svg>
386+
</div>
387+
</div>
388+
</div>
389+
<div
390+
class="_inline-field-body_19upo_38"
391+
>
392+
<label
393+
class="_label_19upo_59"
394+
for="checkbox_MwbPDmfGtm"
260395
>
261396
<svg
262397
class="mx_SidebarUserSettingsTab_icon"
@@ -274,7 +409,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings with guest spa url
274409
</label>
275410
<span
276411
class="_message_19upo_85 _help-message_19upo_91"
277-
id="«rd»"
412+
id="«rl»"
278413
>
279414
Group all private video rooms and conferences. In conferences you can invite people outside of matrix.
280415
</span>
@@ -341,7 +476,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
341476
class="_container_1hel1_10"
342477
>
343478
<input
344-
aria-describedby="«rh»"
479+
aria-describedby="«rp»"
345480
checked=""
346481
class="_input_1hel1_18"
347482
disabled=""
@@ -389,7 +524,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
389524
</label>
390525
<span
391526
class="_message_19upo_85 _help-message_19upo_91"
392-
id="«rh»"
527+
id="«rp»"
393528
>
394529
Home is useful for getting an overview of everything.
395530
</span>
@@ -409,7 +544,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
409544
class="_container_1hel1_10"
410545
>
411546
<input
412-
aria-describedby="«rl»"
547+
aria-describedby="«rt»"
413548
class="_input_1hel1_18"
414549
data-testid="mx_SidebarUserSettingsTab_homeAllRoomsCheckbox"
415550
id="checkbox_38QgU2Pomx"
@@ -444,7 +579,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
444579
</label>
445580
<span
446581
class="_message_19upo_85 _help-message_19upo_91"
447-
id="«rl»"
582+
id="«rt»"
448583
>
449584
Show all your rooms in Home, even if they're in a space.
450585
</span>
@@ -464,7 +599,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
464599
class="_container_1hel1_10"
465600
>
466601
<input
467-
aria-describedby="«rp»"
602+
aria-describedby="«r11»"
468603
class="_input_1hel1_18"
469604
id="checkbox_wKpa6hpi3Y"
470605
type="checkbox"
@@ -494,13 +629,25 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
494629
class="_label_19upo_59"
495630
for="checkbox_wKpa6hpi3Y"
496631
>
497-
Rooms outside of a space
632+
<svg
633+
class="mx_SidebarUserSettingsTab_icon"
634+
fill="currentColor"
635+
height="1em"
636+
viewBox="0 0 24 24"
637+
width="1em"
638+
xmlns="http://www.w3.org/2000/svg"
639+
>
640+
<path
641+
d="m12.897 2.817 2.336 4.733 5.223.76a1 1 0 0 1 .555 1.705L17.23 13.7l.892 5.202a1 1 0 0 1-1.45 1.054L12 17.5l-4.672 2.456a1 1 0 0 1-1.451-1.054l.892-5.202-3.78-3.685a1 1 0 0 1 .555-1.706l5.223-.759 2.336-4.733a1 1 0 0 1 1.794 0"
642+
/>
643+
</svg>
644+
Favourites
498645
</label>
499646
<span
500647
class="_message_19upo_85 _help-message_19upo_91"
501-
id="«rp»"
648+
id="«r11»"
502649
>
503-
Group all your rooms that aren't part of a space in one place.
650+
Group all your favourite rooms and people in one place.
504651
</span>
505652
</div>
506653
</div>
@@ -518,7 +665,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
518665
class="_container_1hel1_10"
519666
>
520667
<input
521-
aria-describedby="«rt»"
668+
aria-describedby="«r15»"
522669
class="_input_1hel1_18"
523670
id="checkbox_EetmBG4yVC"
524671
type="checkbox"
@@ -547,6 +694,129 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
547694
<label
548695
class="_label_19upo_59"
549696
for="checkbox_EetmBG4yVC"
697+
>
698+
<svg
699+
class="mx_SidebarUserSettingsTab_icon"
700+
fill="currentColor"
701+
height="1em"
702+
viewBox="0 0 24 24"
703+
width="1em"
704+
xmlns="http://www.w3.org/2000/svg"
705+
>
706+
<path
707+
d="M12 15q-1.65 0-2.825-1.175T8 11t1.175-2.825T12 7t2.825 1.175T16 11t-1.175 2.825T12 15"
708+
/>
709+
<path
710+
d="M19.528 18.583A9.96 9.96 0 0 0 22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 2.52.933 4.824 2.472 6.583A9.98 9.98 0 0 0 12 22a9.98 9.98 0 0 0 7.528-3.417M8.75 16.388q-1.373.332-2.709.95a8 8 0 1 1 11.918 0 14.7 14.7 0 0 0-2.709-.95A13.8 13.8 0 0 0 12 16q-1.65 0-3.25.387"
711+
/>
712+
</svg>
713+
People
714+
</label>
715+
<span
716+
class="_message_19upo_85 _help-message_19upo_91"
717+
id="«r15»"
718+
>
719+
Group all your people in one place.
720+
</span>
721+
</div>
722+
</div>
723+
</form>
724+
<form
725+
class="_root_19upo_16"
726+
>
727+
<div
728+
class="_inline-field_19upo_32 mx_SidebarUserSettingsTab_checkbox"
729+
>
730+
<div
731+
class="_inline-field-control_19upo_44"
732+
>
733+
<div
734+
class="_container_1hel1_10"
735+
>
736+
<input
737+
aria-describedby="«r19»"
738+
class="_input_1hel1_18"
739+
id="checkbox_eEefiPqpMR"
740+
type="checkbox"
741+
/>
742+
<div
743+
class="_ui_1hel1_19"
744+
>
745+
<svg
746+
aria-hidden="true"
747+
fill="currentColor"
748+
height="1em"
749+
viewBox="0 0 24 24"
750+
width="1em"
751+
xmlns="http://www.w3.org/2000/svg"
752+
>
753+
<path
754+
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
755+
/>
756+
</svg>
757+
</div>
758+
</div>
759+
</div>
760+
<div
761+
class="_inline-field-body_19upo_38"
762+
>
763+
<label
764+
class="_label_19upo_59"
765+
for="checkbox_eEefiPqpMR"
766+
>
767+
Rooms outside of a space
768+
</label>
769+
<span
770+
class="_message_19upo_85 _help-message_19upo_91"
771+
id="«r19»"
772+
>
773+
Group all your rooms that aren't part of a space in one place.
774+
</span>
775+
</div>
776+
</div>
777+
</form>
778+
<form
779+
class="_root_19upo_16"
780+
>
781+
<div
782+
class="_inline-field_19upo_32 mx_SidebarUserSettingsTab_checkbox"
783+
>
784+
<div
785+
class="_inline-field-control_19upo_44"
786+
>
787+
<div
788+
class="_container_1hel1_10"
789+
>
790+
<input
791+
aria-describedby="«r1d»"
792+
class="_input_1hel1_18"
793+
id="checkbox_MwbPDmfGtm"
794+
type="checkbox"
795+
/>
796+
<div
797+
class="_ui_1hel1_19"
798+
>
799+
<svg
800+
aria-hidden="true"
801+
fill="currentColor"
802+
height="1em"
803+
viewBox="0 0 24 24"
804+
width="1em"
805+
xmlns="http://www.w3.org/2000/svg"
806+
>
807+
<path
808+
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
809+
/>
810+
</svg>
811+
</div>
812+
</div>
813+
</div>
814+
<div
815+
class="_inline-field-body_19upo_38"
816+
>
817+
<label
818+
class="_label_19upo_59"
819+
for="checkbox_MwbPDmfGtm"
550820
>
551821
<svg
552822
class="mx_SidebarUserSettingsTab_icon"
@@ -564,7 +834,7 @@ exports[`<SidebarUserSettingsTab /> renders sidebar settings without guest spa u
564834
</label>
565835
<span
566836
class="_message_19upo_85 _help-message_19upo_91"
567-
id="«rt»"
837+
id="«r1d»"
568838
>
569839
Group all private video rooms and conferences.
570840
</span>

0 commit comments

Comments
 (0)