Skip to content

Commit 045936b

Browse files
authored
Merge pull request #3152 from topcoder-platform/develop
Merge to Master from Develop branch
2 parents f98e97a + 946f070 commit 045936b

File tree

27 files changed

+428
-201
lines changed

27 files changed

+428
-201
lines changed

__tests__/shared/components/ProfilePage/Header/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports[`renders profile about header correctly 1`] = `
2121
className="src-shared-components-ProfilePage-Header-___styles__handle___-v11j"
2222
style={
2323
Object {
24-
"color": "#9D9FA0",
24+
"color": "#555555",
2525
}
2626
}
2727
>

__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ exports[`Default render 1`] = `
2929
onMouseLeave={[Function]}
3030
onTouchStart={[Function]}
3131
>
32-
Compete
32+
<span
33+
role="link"
34+
tabIndex={0}
35+
>
36+
Compete
37+
</span>
3338
</li>
3439
<li
3540
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -51,7 +56,12 @@ exports[`Default render 1`] = `
5156
onMouseLeave={[Function]}
5257
onTouchStart={[Function]}
5358
>
54-
Community
59+
<span
60+
role="link"
61+
tabIndex={0}
62+
>
63+
Community
64+
</span>
5565
</li>
5666
</ul>
5767
<div
@@ -70,6 +80,8 @@ exports[`Default render 1`] = `
7080
onMouseEnter={[Function]}
7181
onMouseLeave={[Function]}
7282
onTouchStart={[Function]}
83+
role="button"
84+
tabIndex={0}
7385
>
7486
<MagnifyingGlass
7587
height="18"
@@ -294,7 +306,12 @@ exports[`Render with open menu 1`] = `
294306
onMouseLeave={[Function]}
295307
onTouchStart={[Function]}
296308
>
297-
Compete
309+
<span
310+
role="link"
311+
tabIndex={0}
312+
>
313+
Compete
314+
</span>
298315
</li>
299316
<li
300317
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -316,7 +333,12 @@ exports[`Render with open menu 1`] = `
316333
onMouseLeave={[Function]}
317334
onTouchStart={[Function]}
318335
>
319-
Community
336+
<span
337+
role="link"
338+
tabIndex={0}
339+
>
340+
Community
341+
</span>
320342
</li>
321343
</ul>
322344
<div
@@ -335,6 +357,8 @@ exports[`Render with open menu 1`] = `
335357
onMouseEnter={[Function]}
336358
onMouseLeave={[Function]}
337359
onTouchStart={[Function]}
360+
role="button"
361+
tabIndex={0}
338362
>
339363
<MagnifyingGlass
340364
height="18"
@@ -570,7 +594,12 @@ exports[`Render with specified profile 1`] = `
570594
onMouseLeave={[Function]}
571595
onTouchStart={[Function]}
572596
>
573-
Compete
597+
<span
598+
role="link"
599+
tabIndex={0}
600+
>
601+
Compete
602+
</span>
574603
</li>
575604
<li
576605
className="src-shared-components-TopcoderHeader-___style__main-menu-item___2KIu6"
@@ -592,7 +621,12 @@ exports[`Render with specified profile 1`] = `
592621
onMouseLeave={[Function]}
593622
onTouchStart={[Function]}
594623
>
595-
Community
624+
<span
625+
role="link"
626+
tabIndex={0}
627+
>
628+
Community
629+
</span>
596630
</li>
597631
</ul>
598632
<div
@@ -609,7 +643,7 @@ exports[`Render with specified profile 1`] = `
609643
className="src-shared-components-TopcoderHeader-___style__user-menu-handle___r6kbg"
610644
style={
611645
Object {
612-
"color": "#9D9FA0",
646+
"color": "#555555",
613647
}
614648
}
615649
/>
@@ -630,6 +664,8 @@ exports[`Render with specified profile 1`] = `
630664
onMouseEnter={[Function]}
631665
onMouseLeave={[Function]}
632666
onTouchStart={[Function]}
667+
role="button"
668+
tabIndex={0}
633669
>
634670
<MagnifyingGlass
635671
height="18"

__tests__/shared/components/TopcoderHeader/desktop/SubMenu/Item.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test('Matches shallow shapshot', () => {
88
renderer.render((
99
<Item
1010
currentSubMenuTitle="title"
11-
icon="icon url"
11+
icon={<div />}
1212
title="title"
1313
link="menu url"
1414
/>
@@ -18,7 +18,7 @@ test('Matches shallow shapshot', () => {
1818
renderer.render((
1919
<Item
2020
currentSubMenuTitle="another title"
21-
icon="icon url"
21+
icon={<div />}
2222
title="title"
2323
link="menu url"
2424
/>

__tests__/shared/components/TopcoderHeader/desktop/SubMenu/__snapshots__/Item.jsx.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ exports[`Matches shallow shapshot 1`] = `
1111
openNewTab={false}
1212
to="menu url"
1313
>
14-
icon url
14+
<div
15+
aria-label="title"
16+
/>
1517
title
1618
</Link>
1719
</li>
@@ -28,7 +30,9 @@ exports[`Matches shallow shapshot 2`] = `
2830
openNewTab={false}
2931
to="menu url"
3032
>
31-
icon url
33+
<div
34+
aria-label="title"
35+
/>
3236
title
3337
</Link>
3438
</li>

__tests__/shared/components/TopcoderHeader/mobile/__snapshots__/UserMenu.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports[`Snapshot match 1`] = `
1818
className="src-shared-components-TopcoderHeader-mobile-UserMenu-___style__handle___CL0Tq"
1919
style={
2020
Object {
21-
"color": "#9D9FA0",
21+
"color": "#555555",
2222
}
2323
}
2424
>

__tests__/shared/components/__snapshots__/Handle.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`Matches shallow shapshot 1`] = `
66
href=""
77
style={
88
Object {
9-
"color": "#9D9FA0",
9+
"color": "#555555",
1010
"fontSize": "24px",
1111
}
1212
}

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ exports[`Matches shallow shapshot 1`] = `
8484
options={
8585
Array [
8686
Object {
87-
"label": <div>
87+
"data": <div>
8888
Sample community
8989
</div>,
90+
"label": "Sample community",
9091
"name": "Sample community",
9192
"value": "123",
9293
},
@@ -299,9 +300,10 @@ exports[`Matches shallow shapshot 2`] = `
299300
options={
300301
Array [
301302
Object {
302-
"label": <div>
303+
"data": <div>
303304
Sample community
304305
</div>,
306+
"label": "Sample community",
305307
"name": "Sample community",
306308
"value": "123",
307309
},

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersSwitch.jsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ exports[`Matches shallow shapshot 1`] = `
55
className="tc-outline-btn name src-shared-components-challenge-listing-Filters-FiltersSwitch-___style__FiltersSwitch___2ixiH"
66
onClick={[Function]}
77
onKeyPress={[Function]}
8+
role="button"
9+
tabIndex={0}
810
>
911
<FiltersIcon
1012
className="src-shared-components-challenge-listing-Filters-FiltersSwitch-___style__FiltersIcon___OqBJh"
@@ -22,6 +24,8 @@ exports[`Matches shallow shapshot 2`] = `
2224
className="tc-outline-btn name src-shared-components-challenge-listing-Filters-FiltersSwitch-___style__FiltersSwitch___2ixiH src-shared-components-challenge-listing-Filters-FiltersSwitch-___style__active___2wLTl"
2325
onClick={[Function]}
2426
onKeyPress={[Function]}
27+
role="button"
28+
tabIndex={0}
2529
>
2630
<FiltersIcon
2731
className="src-shared-components-challenge-listing-Filters-FiltersSwitch-___style__FiltersIcon___OqBJh"

0 commit comments

Comments
 (0)