Skip to content

Commit 16ff41b

Browse files
authored
Merge branch 'qa-accessibility' into issue-3071
2 parents c9aea56 + a340d8a commit 16ff41b

File tree

37 files changed

+282
-85
lines changed

37 files changed

+282
-85
lines changed

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

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,14 @@ exports[`Default render 1`] = `
107107
onMouseLeave={[Function]}
108108
role="search"
109109
>
110+
<span
111+
className="src-shared-components-TopcoderHeader-___style__search-label___2zeW2"
112+
>
113+
Search Members:
114+
</span>
110115
<input
116+
aria-label="Find members by username or skill"
117+
className="src-shared-components-TopcoderHeader-___style__search-input___3GySi"
111118
onKeyPress={[Function]}
112119
placeholder="Find members by username or skill"
113120
/>
@@ -400,7 +407,14 @@ exports[`Render with open menu 1`] = `
400407
onMouseLeave={[Function]}
401408
role="search"
402409
>
410+
<span
411+
className="src-shared-components-TopcoderHeader-___style__search-label___2zeW2"
412+
>
413+
Search Members:
414+
</span>
403415
<input
416+
aria-label="Find members by username or skill"
417+
className="src-shared-components-TopcoderHeader-___style__search-input___3GySi"
404418
onKeyPress={[Function]}
405419
placeholder="Find members by username or skill"
406420
/>
@@ -662,16 +676,21 @@ exports[`Render with specified profile 1`] = `
662676
}
663677
tabIndex={0}
664678
/>
665-
<div
666-
className="src-shared-components-TopcoderHeader-___style__avatar___3BqbY"
679+
<span
680+
role="link"
681+
tabIndex={0}
667682
>
668-
<ThemedAvatar
669-
composeAdhocTheme="deeply"
670-
composeContextTheme="softly"
671-
mapThemrProps={[Function]}
672-
themePriority="adhoc-context-default"
673-
/>
674-
</div>
683+
<div
684+
className="src-shared-components-TopcoderHeader-___style__avatar___3BqbY"
685+
>
686+
<ThemedAvatar
687+
composeAdhocTheme="deeply"
688+
composeContextTheme="softly"
689+
mapThemrProps={[Function]}
690+
themePriority="adhoc-context-default"
691+
/>
692+
</div>
693+
</span>
675694
</div>
676695
<div
677696
aria-label="Search"
@@ -703,7 +722,14 @@ exports[`Render with specified profile 1`] = `
703722
onMouseLeave={[Function]}
704723
role="search"
705724
>
725+
<span
726+
className="src-shared-components-TopcoderHeader-___style__search-label___2zeW2"
727+
>
728+
Search Members:
729+
</span>
706730
<input
731+
aria-label="Find members by username or skill"
732+
className="src-shared-components-TopcoderHeader-___style__search-input___3GySi"
707733
onKeyPress={[Function]}
708734
placeholder="Find members by username or skill"
709735
/>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ exports[`Matches shallow shapshot 1`] = `
6868
xmlns="http://www.w3.org/2000/svg"
6969
>
7070
<title>
71-
icon facebook
71+
facebook
7272
</title>
7373
<path
7474
d="M24 .5H3c-1.65 0-3 1.35-3 3v21c0 1.651 1.35 3 3 3h10.5V17h-3v-3.713h3v-3.074c0-3.247 1.818-5.527 5.649-5.527l2.705.003v3.908h-1.796C18.567 8.597 18 9.716 18 10.754v2.535h3.852L21 17h-3v10.5h6c1.65 0 3-1.349 3-3v-21c0-1.65-1.35-3-3-3z"
@@ -89,7 +89,7 @@ exports[`Matches shallow shapshot 1`] = `
8989
xmlns="http://www.w3.org/2000/svg"
9090
>
9191
<title>
92-
icon twitter
92+
twitter
9393
</title>
9494
<path
9595
d="M24.774 6.083c.012.243.016.489.016.732 0 7.485-5.695 16.113-16.11 16.113-3.199 0-6.174-.938-8.68-2.546.444.053.894.08 1.35.08 2.655 0 5.096-.906 7.032-2.422a5.668 5.668 0 0 1-5.289-3.932 5.787 5.787 0 0 0 2.557-.097A5.668 5.668 0 0 1 1.11 8.456v-.07c.763.424 1.637.679 2.564.709a5.662 5.662 0 0 1-1.751-7.561A16.073 16.073 0 0 0 13.593 7.45a5.72 5.72 0 0 1-.146-1.291A5.66 5.66 0 0 1 19.11.5c1.628 0 3.1.686 4.133 1.786 1.289-.255 2.501-.725 3.596-1.374a5.683 5.683 0 0 1-2.49 3.132 11.326 11.326 0 0 0 3.252-.89 11.435 11.435 0 0 1-2.826 2.929z"
@@ -110,7 +110,7 @@ exports[`Matches shallow shapshot 1`] = `
110110
xmlns="http://www.w3.org/2000/svg"
111111
>
112112
<title>
113-
icon linkedln
113+
linkedln
114114
</title>
115115
<path
116116
d="M6 3.5c0 1.65-1.05 3-3 3-1.8 0-3-1.35-3-2.85C0 2 1.2.5 3 .5s3 1.35 3 3zm-6 24h6V8H0v19.5zM20.4 8.3c-3.15 0-4.95 1.8-5.7 3h-.15l-.3-2.55h-5.4c0 1.65.15 3.6.15 5.85v12.9h6V16.85c0-.6 0-1.05.15-1.5.45-1.05 1.2-2.4 2.85-2.4 2.1 0 3 1.8 3 4.2V27.5h6V16.4c0-5.55-2.85-8.1-6.6-8.1z"
@@ -131,7 +131,7 @@ exports[`Matches shallow shapshot 1`] = `
131131
xmlns="http://www.w3.org/2000/svg"
132132
>
133133
<title>
134-
icon instagram
134+
instagram
135135
</title>
136136
<g
137137
fill="#A3A3AD"

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports[`Matches shallow shapshot 1`] = `
1818
endDatePlaceholderText="End Date"
1919
firstDayOfWeek={null}
2020
focusedInput={null}
21-
hideKeyboardShortcutsPanel={true}
21+
hideKeyboardShortcutsPanel={false}
2222
horizontalMargin={0}
2323
initialVisibleMonth={null}
2424
inputIconPosition="before"
@@ -46,6 +46,7 @@ exports[`Matches shallow shapshot 1`] = `
4646
"calendarLabel": "Calendar",
4747
"chooseAvailableEndDate": [Function],
4848
"chooseAvailableStartDate": [Function],
49+
"clearDate": "Clear Date",
4950
"clearDates": "Clear Dates",
5051
"closeDatePicker": "Close",
5152
"dateIsSelected": [Function],
@@ -57,8 +58,8 @@ exports[`Matches shallow shapshot 1`] = `
5758
"focusStartDate": "Interact with the calendar and add the check-in date for your trip.",
5859
"hideKeyboardShortcutsPanel": "Close the shortcuts panel.",
5960
"homeEnd": "Home and end keys",
60-
"jumpToNextMonth": "Move forward to switch to the next month.",
61-
"jumpToPrevMonth": "Move backward to switch to the previous month.",
61+
"jumpToNextMonth": "Next Month",
62+
"jumpToPrevMonth": "Previous Month",
6263
"keyboardNavigationInstructions": "Press the down arrow key to interact with the calendar and
6364
select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",
6465
"keyboardShortcuts": "Keyboard Shortcuts",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ exports[`Matches shallow shapshot 1`] = `
6060
},
6161
]
6262
}
63+
placeholder="Select Keywords"
6364
selectRef={[Function]}
6465
simpleValue={true}
6566
value={null}
@@ -131,6 +132,7 @@ exports[`Matches shallow shapshot 1`] = `
131132
},
132133
]
133134
}
135+
placeholder="Select Subtrack"
134136
selectRef={[Function]}
135137
simpleValue={true}
136138
value={null}
@@ -276,6 +278,7 @@ exports[`Matches shallow shapshot 2`] = `
276278
multi={true}
277279
onChange={[Function]}
278280
options={Array []}
281+
placeholder="Select Keywords"
279282
selectRef={[Function]}
280283
simpleValue={true}
281284
value={null}
@@ -336,6 +339,7 @@ exports[`Matches shallow shapshot 2`] = `
336339
multi={true}
337340
onChange={[Function]}
338341
options={Array []}
342+
placeholder="Select Subtrack"
339343
selectRef={[Function]}
340344
simpleValue={true}
341345
value={null}

__tests__/shared/components/challenge-listing/Sidebar/__snapshots__/Footer.jsx.snap

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,59 @@ exports[`Matches shallow shapshot 1`] = `
77
<ul>
88
<li>
99
<a
10-
href="https://www.topcoder-dev.com/about"
10+
aria-label="About"
11+
onClick={[Function]}
12+
onKeyPress={[Function]}
13+
role="link"
14+
tabIndex="0"
1115
>
1216
About
1317
</a>
1418
 • 
1519
</li>
1620
<li>
1721
<a
18-
href="https://help.topcoder-dev.com/hc/en-us/articles/219069687-Contact-Support"
22+
aria-label="Contact"
23+
onClick={[Function]}
24+
onKeyPress={[Function]}
25+
role="link"
26+
tabIndex="0"
1927
>
2028
Contact
2129
</a>
2230
 • 
2331
</li>
2432
<li>
2533
<a
26-
href="https://help.topcoder-dev.com"
34+
aria-label="Help"
35+
onClick={[Function]}
36+
onKeyPress={[Function]}
37+
role="link"
38+
tabIndex="0"
2739
>
2840
Help
2941
</a>
3042
 • 
3143
</li>
3244
<li>
3345
<a
34-
href="https://www.topcoder-dev.com/community/how-it-works/privacy-policy/"
46+
aria-label="Privacy"
47+
onClick={[Function]}
48+
onKeyPress={[Function]}
49+
role="link"
50+
tabIndex="0"
3551
>
3652
Privacy
3753
</a>
3854
 • 
3955
</li>
4056
<li>
4157
<a
42-
href="https://www.topcoder-dev.com/community/how-it-works/terms/"
58+
aria-label="Terms"
59+
onClick={[Function]}
60+
onKeyPress={[Function]}
61+
role="link"
62+
tabIndex="0"
4363
>
4464
Terms
4565
</a>

0 commit comments

Comments
 (0)