Skip to content

Commit fe5ba49

Browse files
committed
Updated to reflect active teams switch.
1 parent 4c975a4 commit fe5ba49

File tree

1 file changed

+106
-36
lines changed

1 file changed

+106
-36
lines changed

web-ui/src/components/team-results/__snapshots__/TeamResults.test.jsx.snap

+106-36
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,66 @@ exports[`renders correctly 1`] = `
4747
<div
4848
class="team-actions"
4949
>
50-
<button
51-
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1e6y48t-MuiButtonBase-root-MuiButton-root"
52-
tabindex="0"
53-
type="button"
50+
<div
51+
class="team-actions"
52+
>
53+
<button
54+
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1e6y48t-MuiButtonBase-root-MuiButton-root"
55+
tabindex="0"
56+
type="button"
57+
>
58+
<span
59+
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1d6wzja-MuiButton-startIcon"
60+
>
61+
<svg
62+
aria-hidden="true"
63+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
64+
data-testid="GroupIcon"
65+
focusable="false"
66+
viewBox="0 0 24 24"
67+
>
68+
<path
69+
d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"
70+
/>
71+
</svg>
72+
</span>
73+
Add Team
74+
<span
75+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
76+
/>
77+
</button>
78+
</div>
79+
<label
80+
class="MuiFormControlLabel-root MuiFormControlLabel-labelPlacementEnd css-j204z7-MuiFormControlLabel-root"
5481
>
5582
<span
56-
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1d6wzja-MuiButton-startIcon"
83+
class="MuiSwitch-root MuiSwitch-sizeMedium css-julti5-MuiSwitch-root"
5784
>
58-
<svg
59-
aria-hidden="true"
60-
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
61-
data-testid="GroupIcon"
62-
focusable="false"
63-
viewBox="0 0 24 24"
85+
<span
86+
class="MuiButtonBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary Mui-checked PrivateSwitchBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary Mui-checked Mui-checked css-byenzh-MuiButtonBase-root-MuiSwitch-switchBase"
6487
>
65-
<path
66-
d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"
88+
<input
89+
checked=""
90+
class="PrivateSwitchBase-input MuiSwitch-input css-1m9pwf3"
91+
type="checkbox"
6792
/>
68-
</svg>
93+
<span
94+
class="MuiSwitch-thumb css-jsexje-MuiSwitch-thumb"
95+
/>
96+
<span
97+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
98+
/>
99+
</span>
100+
<span
101+
class="MuiSwitch-track css-1yjjitx-MuiSwitch-track"
102+
/>
69103
</span>
70-
Add Team
71104
<span
72-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
73-
/>
74-
</button>
105+
class="MuiTypography-root MuiTypography-body1 MuiFormControlLabel-label css-ahj2mt-MuiTypography-root"
106+
>
107+
Active Teams Only
108+
</span>
109+
</label>
75110
</div>
76111
</div>
77112
<div
@@ -128,31 +163,66 @@ exports[`renders correctly when no teams are loaded 1`] = `
128163
<div
129164
class="team-actions"
130165
>
131-
<button
132-
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1e6y48t-MuiButtonBase-root-MuiButton-root"
133-
tabindex="0"
134-
type="button"
166+
<div
167+
class="team-actions"
168+
>
169+
<button
170+
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1e6y48t-MuiButtonBase-root-MuiButton-root"
171+
tabindex="0"
172+
type="button"
173+
>
174+
<span
175+
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1d6wzja-MuiButton-startIcon"
176+
>
177+
<svg
178+
aria-hidden="true"
179+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
180+
data-testid="GroupIcon"
181+
focusable="false"
182+
viewBox="0 0 24 24"
183+
>
184+
<path
185+
d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"
186+
/>
187+
</svg>
188+
</span>
189+
Add Team
190+
<span
191+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
192+
/>
193+
</button>
194+
</div>
195+
<label
196+
class="MuiFormControlLabel-root MuiFormControlLabel-labelPlacementEnd css-j204z7-MuiFormControlLabel-root"
135197
>
136198
<span
137-
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1d6wzja-MuiButton-startIcon"
199+
class="MuiSwitch-root MuiSwitch-sizeMedium css-julti5-MuiSwitch-root"
138200
>
139-
<svg
140-
aria-hidden="true"
141-
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
142-
data-testid="GroupIcon"
143-
focusable="false"
144-
viewBox="0 0 24 24"
201+
<span
202+
class="MuiButtonBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary Mui-checked PrivateSwitchBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary Mui-checked Mui-checked css-byenzh-MuiButtonBase-root-MuiSwitch-switchBase"
145203
>
146-
<path
147-
d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"
204+
<input
205+
checked=""
206+
class="PrivateSwitchBase-input MuiSwitch-input css-1m9pwf3"
207+
type="checkbox"
148208
/>
149-
</svg>
209+
<span
210+
class="MuiSwitch-thumb css-jsexje-MuiSwitch-thumb"
211+
/>
212+
<span
213+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
214+
/>
215+
</span>
216+
<span
217+
class="MuiSwitch-track css-1yjjitx-MuiSwitch-track"
218+
/>
150219
</span>
151-
Add Team
152220
<span
153-
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
154-
/>
155-
</button>
221+
class="MuiTypography-root MuiTypography-body1 MuiFormControlLabel-label css-ahj2mt-MuiTypography-root"
222+
>
223+
Active Teams Only
224+
</span>
225+
</label>
156226
</div>
157227
</div>
158228
<div

0 commit comments

Comments
 (0)