Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit d52a2a5

Browse files
updated snaps
1 parent 5dd9ff7 commit d52a2a5

File tree

2 files changed

+159
-3
lines changed

2 files changed

+159
-3
lines changed

src/App/__snapshots__/App.test.tsx.snap

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ exports[`<App /> should display the Header component 1`] = `
358358
}
359359
360360
<div
361-
class="MuiBox-root MuiBox-root-219 emotion-81 emotion-82"
361+
class="MuiBox-root MuiBox-root-220 emotion-81 emotion-82"
362362
>
363363
<header
364364
class="MuiPaper-root MuiPaper-elevation4 MuiAppBar-root MuiAppBar-positionStatic emotion-24 emotion-25 MuiAppBar-colorPrimary"
@@ -461,6 +461,45 @@ exports[`<App /> should display the Header component 1`] = `
461461
class="MuiTouchRipple-root"
462462
/>
463463
</button>
464+
<button
465+
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
466+
tabindex="0"
467+
title="Change language"
468+
type="button"
469+
>
470+
<span
471+
class="MuiButton-label ForwardRef(Button)-label-339"
472+
>
473+
<svg
474+
aria-hidden="true"
475+
class="MuiSvgIcon-root"
476+
focusable="false"
477+
role="presentation"
478+
viewBox="0 0 24 24"
479+
>
480+
<path
481+
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
482+
/>
483+
</svg>
484+
<span>
485+
English
486+
</span>
487+
<svg
488+
aria-hidden="true"
489+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall"
490+
focusable="false"
491+
role="presentation"
492+
viewBox="0 0 24 24"
493+
>
494+
<path
495+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
496+
/>
497+
</svg>
498+
</span>
499+
<span
500+
class="MuiTouchRipple-root"
501+
/>
502+
</button>
464503
<a
465504
class="emotion-18 emotion-19"
466505
data-testid="header--tooltip-documentation"
@@ -566,7 +605,7 @@ exports[`<App /> should display the Header component 1`] = `
566605
</div>
567606
</header>
568607
<div
569-
class="MuiBox-root MuiBox-root-412 emotion-36 emotion-37"
608+
class="MuiBox-root MuiBox-root-414 emotion-36 emotion-37"
570609
>
571610
<div
572611
class="container content"
@@ -1150,6 +1189,45 @@ exports[`<App /> should display the Loading component at the beginning 1`] = `
11501189
class="MuiTouchRipple-root"
11511190
/>
11521191
</button>
1192+
<button
1193+
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
1194+
tabindex="0"
1195+
title="Change language"
1196+
type="button"
1197+
>
1198+
<span
1199+
class="MuiButton-label ForwardRef(Button)-label-121"
1200+
>
1201+
<svg
1202+
aria-hidden="true"
1203+
class="MuiSvgIcon-root"
1204+
focusable="false"
1205+
role="presentation"
1206+
viewBox="0 0 24 24"
1207+
>
1208+
<path
1209+
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
1210+
/>
1211+
</svg>
1212+
<span>
1213+
English
1214+
</span>
1215+
<svg
1216+
aria-hidden="true"
1217+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall"
1218+
focusable="false"
1219+
role="presentation"
1220+
viewBox="0 0 24 24"
1221+
>
1222+
<path
1223+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
1224+
/>
1225+
</svg>
1226+
</span>
1227+
<span
1228+
class="MuiTouchRipple-root"
1229+
/>
1230+
</button>
11531231
<a
11541232
class="emotion-18 emotion-19"
11551233
data-testid="header--tooltip-documentation"
@@ -1255,7 +1333,7 @@ exports[`<App /> should display the Loading component at the beginning 1`] = `
12551333
</div>
12561334
</header>
12571335
<div
1258-
class="MuiBox-root MuiBox-root-195 emotion-26 emotion-27"
1336+
class="MuiBox-root MuiBox-root-196 emotion-26 emotion-27"
12591337
/>
12601338
<div
12611339
class="emotion-69 emotion-70"

src/components/Header/__snapshots__/Header.test.tsx.snap

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,45 @@ exports[`<Header /> component with logged in state should load the component in
241241
class="MuiTouchRipple-root"
242242
/>
243243
</button>
244+
<button
245+
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
246+
tabindex="0"
247+
title="Change language"
248+
type="button"
249+
>
250+
<span
251+
class="MuiButton-label ForwardRef(Button)-label-322"
252+
>
253+
<svg
254+
aria-hidden="true"
255+
class="MuiSvgIcon-root"
256+
focusable="false"
257+
role="presentation"
258+
viewBox="0 0 24 24"
259+
>
260+
<path
261+
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
262+
/>
263+
</svg>
264+
<span>
265+
English
266+
</span>
267+
<svg
268+
aria-hidden="true"
269+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall"
270+
focusable="false"
271+
role="presentation"
272+
viewBox="0 0 24 24"
273+
>
274+
<path
275+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
276+
/>
277+
</svg>
278+
</span>
279+
<span
280+
class="MuiTouchRipple-root"
281+
/>
282+
</button>
244283
<a
245284
class="emotion-18 emotion-19"
246285
data-testid="header--tooltip-documentation"
@@ -599,6 +638,45 @@ exports[`<Header /> component with logged in state should load the component in
599638
class="MuiTouchRipple-root"
600639
/>
601640
</button>
641+
<button
642+
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
643+
tabindex="0"
644+
title="Change language"
645+
type="button"
646+
>
647+
<span
648+
class="MuiButton-label ForwardRef(Button)-label-119"
649+
>
650+
<svg
651+
aria-hidden="true"
652+
class="MuiSvgIcon-root"
653+
focusable="false"
654+
role="presentation"
655+
viewBox="0 0 24 24"
656+
>
657+
<path
658+
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
659+
/>
660+
</svg>
661+
<span>
662+
English
663+
</span>
664+
<svg
665+
aria-hidden="true"
666+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall"
667+
focusable="false"
668+
role="presentation"
669+
viewBox="0 0 24 24"
670+
>
671+
<path
672+
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
673+
/>
674+
</svg>
675+
</span>
676+
<span
677+
class="MuiTouchRipple-root"
678+
/>
679+
</button>
602680
<a
603681
class="emotion-18 emotion-19"
604682
data-testid="header--tooltip-documentation"

0 commit comments

Comments
 (0)