Skip to content

Commit f4d23ba

Browse files
authored
Merge pull request #4946 from topcoder-platform/develop
Release 2020-09-17
2 parents e8e1768 + b3f613d commit f4d23ba

File tree

84 files changed

+3903
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3903
-65
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ workflows:
230230
filters:
231231
branches:
232232
only:
233-
- milestone-20200924
234233
- develop
235234
# This is alternate dev env for parallel testing
236235
- "build-test":
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Default render 1`] = `
4+
<label
5+
className="src-shared-components-GUIKit-Checkbox-___style__container___2a1GZ src-shared-components-GUIKit-Checkbox-___style__smSize___3aux-"
6+
>
7+
<input
8+
checked={false}
9+
onChange={[Function]}
10+
type="checkbox"
11+
/>
12+
<div
13+
className="src-shared-components-GUIKit-Checkbox-___style__checkmark___1xdsj"
14+
>
15+
<IconCheckSolid
16+
className="src-shared-components-GUIKit-Checkbox-___style__after___2rEBg"
17+
height={13}
18+
viewBox="0 0 18 15"
19+
width={13}
20+
xmlns="http://www.w3.org/2000/svg"
21+
xmlnsXlink="http://www.w3.org/1999/xlink"
22+
/>
23+
</div>
24+
</label>
25+
`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import Renderer from 'react-test-renderer/shallow';
3+
4+
import Checkbox from 'components/GUIKit/Checkbox';
5+
6+
7+
const rnd = new Renderer();
8+
9+
it('Default render', () => {
10+
rnd.render((<Checkbox />));
11+
expect(rnd.getRenderOutput()).toMatchSnapshot();
12+
});
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Default render 1`] = `
4+
<div
5+
className="datepickerContainer src-shared-components-GUIKit-Datepicker-___style__container___Sl58X"
6+
>
7+
<withStyles(SingleDatePicker)
8+
anchorDirection="left"
9+
appendToBody={false}
10+
block={false}
11+
calendarInfoPosition="bottom"
12+
customCloseIcon={null}
13+
customInputIcon={
14+
<IconCalendar
15+
height="16"
16+
viewBox="0 0 16 16"
17+
width="16"
18+
xmlns="http://www.w3.org/2000/svg"
19+
/>
20+
}
21+
date={null}
22+
daySize={53}
23+
disableScroll={false}
24+
disabled={false}
25+
displayFormat="MMM DD, YYYY"
26+
enableOutsideDays={true}
27+
firstDayOfWeek={1}
28+
focused={false}
29+
hideKeyboardShortcutsPanel={true}
30+
horizontalMargin={0}
31+
horizontalMonthPadding={13}
32+
id="null----false"
33+
initialVisibleMonth={null}
34+
inputIconPosition="after"
35+
isDayBlocked={[Function]}
36+
isDayHighlighted={[Function]}
37+
isOutsideRange={[Function]}
38+
isRTL={false}
39+
keepFocusOnInput={false}
40+
keepOpenOnDateSelect={false}
41+
monthFormat="MMMM YYYY"
42+
navNext={
43+
<IconNext
44+
height="16"
45+
viewBox="0 0 10 16"
46+
width="10"
47+
xmlns="http://www.w3.org/2000/svg"
48+
/>
49+
}
50+
navPrev={
51+
<IconPrev
52+
height="16"
53+
viewBox="0 0 10 16"
54+
width="10"
55+
xmlns="http://www.w3.org/2000/svg"
56+
/>
57+
}
58+
noBorder={false}
59+
numberOfMonths={1}
60+
onClose={[Function]}
61+
onDateChange={[Function]}
62+
onFocusChange={[Function]}
63+
onNextMonthClick={[Function]}
64+
onPrevMonthClick={[Function]}
65+
openDirection="down"
66+
orientation="horizontal"
67+
phrases={
68+
Object {
69+
"calendarLabel": "Calendar",
70+
"chooseAvailableDate": [Function],
71+
"clearDate": "Clear Date",
72+
"closeDatePicker": "Close",
73+
"dateIsSelected": [Function],
74+
"dateIsUnavailable": [Function],
75+
"enterKey": "Enter key",
76+
"escape": "Escape key",
77+
"hideKeyboardShortcutsPanel": "Close the shortcuts panel.",
78+
"homeEnd": "Home and end keys",
79+
"jumpToNextMonth": "Move forward to switch to the next month.",
80+
"jumpToPrevMonth": "Move backward to switch to the previous month.",
81+
"keyboardNavigationInstructions": "Press the down arrow key to interact with the calendar and
82+
select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",
83+
"keyboardShortcuts": "Keyboard Shortcuts",
84+
"leftArrowRightArrow": "Right and left arrow keys",
85+
"moveFocusByOneDay": "Move backward (left) and forward (right) by one day.",
86+
"moveFocusByOneMonth": "Switch months.",
87+
"moveFocusByOneWeek": "Move backward (up) and forward (down) by one week.",
88+
"moveFocustoStartAndEndOfWeek": "Go to the first or last day of a week.",
89+
"openThisPanel": "Open this panel.",
90+
"pageUpPageDown": "page up and page down keys",
91+
"questionMark": "Question mark",
92+
"returnFocusToInput": "Return to the date input field.",
93+
"selectFocusedDate": "Select the date in focus.",
94+
"showKeyboardShortcutsPanel": "Open the keyboard shortcuts panel.",
95+
"upArrowDownArrow": "up and down arrow keys",
96+
}
97+
}
98+
placeholder=""
99+
readOnly={false}
100+
regular={false}
101+
renderCalendarInfo={null}
102+
renderDayContents={[Function]}
103+
renderMonthElement={null}
104+
renderMonthText={null}
105+
reopenPickerOnClearDate={false}
106+
required={false}
107+
screenReaderInputMessage=""
108+
showClearDate={false}
109+
showDefaultInputIcon={false}
110+
small={false}
111+
verticalHeight={null}
112+
verticalSpacing={22}
113+
weekDayFormat="ddd"
114+
withFullScreenPortal={false}
115+
withPortal={false}
116+
/>
117+
</div>
118+
`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import Renderer from 'react-test-renderer/shallow';
3+
4+
import Datepicker from 'components/GUIKit/Datepicker';
5+
6+
7+
const rnd = new Renderer();
8+
9+
it('Default render', () => {
10+
rnd.render((<Datepicker />));
11+
expect(rnd.getRenderOutput()).toMatchSnapshot();
12+
});
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Default render 1`] = `
4+
<div
5+
className="dropdownContainer src-shared-components-GUIKit-Dropdown-___style__container___1qhm8 src-shared-components-GUIKit-Dropdown-___style__lgSize___1fYu0 src-shared-components-GUIKit-Dropdown-___style__haveValue___1b1qb"
6+
onBlurCapture={[Function]}
7+
onFocusCapture={[Function]}
8+
>
9+
<div
10+
className="src-shared-components-GUIKit-Dropdown-___style__relative___1Yq0F"
11+
>
12+
<Select
13+
arrowRenderer={[Function]}
14+
autoBlur={true}
15+
autosize={false}
16+
backspaceRemoves={true}
17+
backspaceToRemoveMessage="Press backspace to remove {label}"
18+
clearAllText="Clear all"
19+
clearRenderer={[Function]}
20+
clearValueText="Clear value"
21+
clearable={false}
22+
closeOnSelect={true}
23+
deleteRemoves={true}
24+
delimiter=","
25+
disabled={false}
26+
escapeClearsValue={true}
27+
filterOptions={[Function]}
28+
ignoreAccents={true}
29+
ignoreCase={true}
30+
inputProps={Object {}}
31+
isLoading={false}
32+
joinValues={false}
33+
labelKey="label"
34+
matchPos="any"
35+
matchProp="any"
36+
menuBuffer={0}
37+
menuRenderer={[Function]}
38+
multi={false}
39+
noResultsText="No results found"
40+
onBlurResetsInput={true}
41+
onChange={[Function]}
42+
onCloseResetsInput={true}
43+
onSelectResetsInput={true}
44+
openOnClick={true}
45+
optionComponent={[Function]}
46+
options={
47+
Array [
48+
Object {
49+
"label": "dropdownLable",
50+
"value": "dropdownLable",
51+
},
52+
]
53+
}
54+
pageSize={5}
55+
placeholder=""
56+
removeSelected={true}
57+
required={false}
58+
rtl={false}
59+
scrollMenuIntoView={true}
60+
searchable={true}
61+
simpleValue={false}
62+
tabSelectsValue={true}
63+
trimFilter={true}
64+
value="dropdownLable"
65+
valueComponent={[Function]}
66+
valueKey="value"
67+
/>
68+
<img
69+
alt="dropdown-arraow-icon"
70+
className="src-shared-components-GUIKit-Dropdown-___style__iconDropdown___2bPox"
71+
height="9"
72+
src="/community-app-assets/images/e740c51bb099110dff2900fa4fc94d72.png"
73+
width="15"
74+
/>
75+
</div>
76+
</div>
77+
`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import Renderer from 'react-test-renderer/shallow';
3+
4+
import Dropdown from 'components/GUIKit/Dropdown';
5+
6+
7+
const rnd = new Renderer();
8+
9+
it('Default render', () => {
10+
rnd.render((<Dropdown options={[{ label: 'dropdownLable', selected: true }]} />));
11+
expect(rnd.getRenderOutput()).toMatchSnapshot();
12+
});
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Default render 1`] = `
4+
<div
5+
className="dropdownContainer src-shared-components-GUIKit-DropdownTerms-___style__container___oBZ2m src-shared-components-GUIKit-DropdownTerms-___style__haveValue___1Ppjh src-shared-components-GUIKit-DropdownTerms-___style__isEmptySelectList___CWafx"
6+
>
7+
<div
8+
className="src-shared-components-GUIKit-DropdownTerms-___style__relative___EOspV"
9+
>
10+
<CreatableSelect
11+
autosize={false}
12+
backspaceRemoves={false}
13+
clearable={false}
14+
filterOptions={[Function]}
15+
isOptionUnique={[Function]}
16+
isValidNewOption={[Function]}
17+
menuRenderer={[Function]}
18+
multi={true}
19+
newOptionCreator={[Function]}
20+
onChange={[Function]}
21+
onClose={[Function]}
22+
onInputKeyDown={[Function]}
23+
onOpen={[Function]}
24+
optionComponent={
25+
Object {
26+
"$$typeof": Symbol(react.forward_ref),
27+
"defaultProps": Object {
28+
"children": null,
29+
"className": "",
30+
"onSelect": [Function],
31+
},
32+
"propTypes": Object {
33+
"children": [Function],
34+
"className": [Function],
35+
"onSelect": [Function],
36+
"option": [Function],
37+
},
38+
"render": [Function],
39+
}
40+
}
41+
options={
42+
Array [
43+
Object {
44+
"label": "dropdownLabel",
45+
"value": "dropdownLabel",
46+
},
47+
]
48+
}
49+
placeholder=""
50+
promptTextCreator={[Function]}
51+
shouldKeyDownEventCreateNewOption={[Function]}
52+
showNewOptionAtTop={true}
53+
value={
54+
Array [
55+
Object {
56+
"label": "dropdownLabel",
57+
"value": "dropdownLabel",
58+
},
59+
]
60+
}
61+
/>
62+
<img
63+
alt="dropdown-arrow-icon"
64+
className="src-shared-components-GUIKit-DropdownTerms-___style__iconDropdown___25Wtg"
65+
height="9"
66+
src="/community-app-assets/images/e740c51bb099110dff2900fa4fc94d72.png"
67+
width="15"
68+
/>
69+
</div>
70+
</div>
71+
`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import Renderer from 'react-test-renderer/shallow';
3+
4+
import DropdownTerms from 'components/GUIKit/DropdownTerms';
5+
6+
7+
const rnd = new Renderer();
8+
9+
it('Default render', () => {
10+
rnd.render((<DropdownTerms terms={[{ label: 'dropdownLabel', selected: true }]} />));
11+
expect(rnd.getRenderOutput()).toMatchSnapshot();
12+
});
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Default render 1`] = `
4+
<div
5+
className="radioButtonContainer src-shared-components-GUIKit-RadioButton-___style__radioButtonContainer___3YAY0 src-shared-components-GUIKit-RadioButton-___style__smSize____lb3s"
6+
>
7+
<div
8+
className="radioButton src-shared-components-GUIKit-RadioButton-___style__radioButton___2Jtbj"
9+
>
10+
<label
11+
className="src-shared-components-GUIKit-RadioButton-___style__container___3nVSA"
12+
>
13+
<input
14+
checked={true}
15+
onChange={[Function]}
16+
type="radio"
17+
/>
18+
<span
19+
className="src-shared-components-GUIKit-RadioButton-___style__checkmark___1iCFJ"
20+
/>
21+
</label>
22+
<span
23+
className="src-shared-components-GUIKit-RadioButton-___style__label___MCxnk"
24+
>
25+
radio
26+
</span>
27+
</div>
28+
</div>
29+
`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import Renderer from 'react-test-renderer/shallow';
3+
4+
import RadioButton from 'components/GUIKit/RadioButton';
5+
6+
7+
const rnd = new Renderer();
8+
9+
it('Default render', () => {
10+
rnd.render((<RadioButton options={[{ label: 'radio', value: true }]} />));
11+
expect(rnd.getRenderOutput()).toMatchSnapshot();
12+
});

0 commit comments

Comments
 (0)