Skip to content

Commit 22deec4

Browse files
authored
Merge branch 'develop' into karthikbecse-patch-2
2 parents cf6282c + 74eeedd commit 22deec4

File tree

32 files changed

+1487
-182
lines changed

32 files changed

+1487
-182
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ test('handle events', () => {
7171
expect(matches).toHaveLength(2);
7272

7373
TU.Simulate.click(matches[0]);
74-
expect(setFilterState).toHaveBeenCalledTimes(1);
75-
expect(setSearchText).toHaveBeenCalledTimes(1);
74+
expect(setFilterState).toHaveBeenCalledTimes(0);
75+
expect(setSearchText).toHaveBeenCalledTimes(0);
7676

7777
TU.Simulate.click(matches[1]);
78-
expect(onSaveFilter).toHaveBeenCalledTimes(1);
78+
expect(onSaveFilter).toHaveBeenCalledTimes(0);
7979
});

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ exports[`Matches shallow shapshot 1`] = `
6565
Sub community
6666
</label>
6767
<Select
68+
autoBlur={true}
6869
id="community-select"
6970
onChange={[Function]}
7071
options={
@@ -134,12 +135,14 @@ exports[`Matches shallow shapshot 1`] = `
134135
>
135136
<button
136137
className="tc-outline-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__white___AWGFv"
138+
disabled={true}
137139
onClick={[Function]}
138140
>
139141
Clear filters
140142
</button>
141143
<button
142144
className="tc-blue-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__blue___3L4J6"
145+
disabled={true}
143146
onClick={[Function]}
144147
>
145148
Save filter
@@ -202,6 +205,7 @@ exports[`Matches shallow shapshot 2`] = `
202205
Sub community
203206
</label>
204207
<Select
208+
autoBlur={true}
205209
id="community-select"
206210
onChange={[Function]}
207211
options={
@@ -260,12 +264,14 @@ exports[`Matches shallow shapshot 2`] = `
260264
>
261265
<button
262266
className="tc-outline-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__white___AWGFv"
267+
disabled={true}
263268
onClick={[Function]}
264269
>
265270
Clear filters
266271
</button>
267272
<button
268273
className="tc-blue-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__blue___3L4J6"
274+
disabled={true}
269275
onClick={[Function]}
270276
>
271277
Save filter

__tests__/shared/components/challenge-listing/__snapshots__/index.jsx.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
44
<div
55
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
6+
id="challengeFilterContainer"
67
>
78
<Connect(Container)
89
communityName={null}
@@ -91,7 +92,7 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
9192
>
9293
<Sticky
9394
activeClass="active"
94-
bottomBoundary={0}
95+
bottomBoundary="#challengeFilterContainer"
9596
enableTransforms={true}
9697
enabled={true}
9798
onStateChange={null}
@@ -111,6 +112,7 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
111112
exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
112113
<div
113114
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
115+
id="challengeFilterContainer"
114116
>
115117
<Connect(Container)
116118
communityName={null}
@@ -210,7 +212,7 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
210212
>
211213
<Sticky
212214
activeClass="active"
213-
bottomBoundary={0}
215+
bottomBoundary="#challengeFilterContainer"
214216
enableTransforms={true}
215217
enabled={true}
216218
onStateChange={null}

__tests__/shared/components/tc-communities/__snapshots__/AccessDenied.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports[`Matches shallow shapshot 1`] = `
1515
>
1616
<a
1717
className="tc-btn-md tc-btn-primary"
18-
href="http://accounts.topcoder-dev.com/member?retUrl=null%2F"
18+
href="http://accounts.topcoder-dev.com/member?retUrl=%2F"
1919
>
2020
Log In Here
2121
</a>

__tests__/shared/containers/challenge-listing/FilterPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('full render pure component', () => {
125125
const button = instance.find('button.tc-blue-btn');
126126
expect(initialProps.saveFilter).toHaveBeenCalledTimes(0);
127127
button.simulate('click');
128-
expect(initialProps.saveFilter).toHaveBeenCalledTimes(1);
128+
expect(initialProps.saveFilter).toHaveBeenCalledTimes(0);
129129
});
130130

131131
test('setFilterState and selectBucket', () => {

0 commit comments

Comments
 (0)