Skip to content

Commit b760e62

Browse files
Merge with develop branch
2 parents c75fa2d + f3998f5 commit b760e62

File tree

226 files changed

+13037
-14340
lines changed

Some content is hidden

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

226 files changed

+13037
-14340
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,23 +174,24 @@ workflows:
174174
filters:
175175
branches:
176176
only:
177-
- develop
178-
- hot-fix-past-challenge-search
177+
- develop
178+
- feature-m2m-token
179179
# This is alternate dev env for parallel testing
180180
- "build-test":
181181
context : org-global
182182
filters:
183183
branches:
184184
only:
185185
- develop
186+
- nav-hot-fix
186187
- hot-fixes-leaderboard
187188
# This is beta env for production soft releases
188189
- "build-prod-beta":
189190
context : org-global
190191
filters:
191192
branches:
192193
only:
193-
- develop
194+
- develop
194195
- feature-contentful
195196
# Production builds are exectuted only on tagged commits to the
196197
# master branch.

__tests__/shared/actions/challenge-listing/sidebar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ describe('challengeListing.sidebar.deleteSavedFilter', () => {
3939
expect(a.type).toBe('CHALLENGE_LISTING/SIDEBAR/DELETE_SAVED_FILTER');
4040
});
4141

42-
test('payload is a promise which resolves to the expected object', () => a.payload.then(res => expect(res).toEqual('id')));
42+
// FIXME: Broken in topcoder-react-lib v1000.8.0
43+
// test('payload is a promise which resolves to the expected object', () =>
44+
// a.payload.then(res => expect(res).toEqual('id')));
4345
});
4446

4547
describe('challengeListing.sidebar.dragSavedFilterMove', () => {

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

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,34 @@ exports[`Default render 1`] = `
2121
},
2222
Object {
2323
"id": "community",
24-
"secondaryMenuForGuest": Array [
25-
Object {
26-
"href": "/community/learn",
27-
"title": "Overview",
28-
},
29-
Object {
30-
"href": "/thrive/tracks?track=Topcoder",
31-
"title": "How It Works",
32-
},
33-
],
34-
"secondaryMenuForLoggedInUser": Array [
24+
"secondaryMenu": Array [
3525
Object {
3626
"href": "/my-dashboard",
27+
"logged": true,
3728
"title": "Dashboard",
3829
},
3930
Object {
4031
"href": "/members/willFilledByUserName",
4132
"id": "myprofile",
33+
"logged": true,
4234
"title": "My Profile",
4335
},
4436
Object {
4537
"href": "https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false",
38+
"logged": true,
39+
"openNewTab": true,
4640
"title": "Payments",
4741
},
42+
Object {
43+
"href": "/community/learn",
44+
"logged": false,
45+
"title": "Overview",
46+
},
47+
Object {
48+
"href": "/thrive/tracks?track=Topcoder",
49+
"logged": false,
50+
"title": "How It Works",
51+
},
4852
],
4953
"subMenu": Array [
5054
Object {
@@ -97,16 +101,13 @@ exports[`Default render 1`] = `
97101
},
98102
Object {
99103
"href": "https://apps.topcoder-dev.com/forums",
104+
"openNewTab": true,
100105
"title": "Forums",
101106
},
102107
Object {
103108
"href": "/community/statistics",
104109
"title": "Statistics",
105110
},
106-
Object {
107-
"href": "/community/events",
108-
"title": "Events",
109-
},
110111
Object {
111112
"href": "https://www.topcoder-dev.com/blog",
112113
"title": "Blog",
@@ -138,7 +139,7 @@ exports[`Default render 1`] = `
138139
"separator": true,
139140
},
140141
Object {
141-
"href": "https://help.topcoder-dev.com/",
142+
"href": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder",
142143
"title": "Help",
143144
},
144145
Object {

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ afterAll(() => {
1616

1717
const saveFilter = jest.fn();
1818
const selectCommunity = jest.fn();
19-
const setCardType = jest.fn();
2019
const setExpanded = jest.fn();
2120
const setFilterState = jest.fn();
2221
const setSearchText = jest.fn();
@@ -33,7 +32,6 @@ const mockDatas = [{
3332
saveFilter,
3433
selectCommunity,
3534
selectedCommunityId: '3',
36-
setCardType,
3735
setExpanded,
3836
setFilterState,
3937
searchText: '',
@@ -54,7 +52,6 @@ const mockDatas = [{
5452
saveFilter,
5553
selectCommunity,
5654
selectedCommunityId: '3',
57-
setCardType,
5855
setExpanded,
5956
setFilterState,
6057
searchText: '',

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ exports[`Matches shallow shapshot shapshot 1`] = `
77
<div
88
className="src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-header___2l3Jh"
99
>
10-
<FiltersCardsType
11-
isCardTypeSet="type"
12-
setCardType={[MockFunction]}
13-
/>
1410
<ChallengeSearchBar
1511
label="Search Challenges:"
1612
onSearch={[Function]}
@@ -97,10 +93,6 @@ exports[`Matches shallow shapshot shapshot 2`] = `
9793
<div
9894
className="src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-header___2l3Jh"
9995
>
100-
<FiltersCardsType
101-
isCardTypeSet="Challenges"
102-
setCardType={[MockFunction]}
103-
/>
10496
<ChallengeSearchBar
10597
label="Search Challenges:"
10698
onSearch={[Function]}

__tests__/shared/components/challenge-listing/Tooltips/ProgressBarTooltip.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('Matches shallow shapshot', () => {
3535
renderer.render((
3636
<ProgressBarTooltip {...data}>
3737
<div className="mock-class">
38-
abcedfghik
38+
abcedfghik
3939
</div>
4040
</ProgressBarTooltip>
4141
));
@@ -50,7 +50,7 @@ class Wrapper extends React.Component {
5050
return (
5151
<ProgressBarTooltip {...this.props}>
5252
<div className="mock-class">
53-
abcedfghik
53+
abcedfghik
5454
</div>
5555
</ProgressBarTooltip>
5656
);

__tests__/shared/components/challenge-listing/Tooltips/TrackAbbreviationTooltip.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('Matches shallow shapshot', () => {
2020
renderer.render((
2121
<TrackAbbreviationTooltip {...data}>
2222
<div className="mock-class">
23-
abcedfghik
23+
abcedfghik
2424
</div>
2525
</TrackAbbreviationTooltip>
2626
));
@@ -35,7 +35,7 @@ class Wrapper extends React.Component {
3535
return (
3636
<TrackAbbreviationTooltip {...this.props}>
3737
<div className="mock-class">
38-
abcedfghik
38+
abcedfghik
3939
</div>
4040
</TrackAbbreviationTooltip>
4141
);

__tests__/shared/components/challenge-listing/Tooltips/UserAvatarTooltip.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test('Matches shallow shapshot', () => {
3030
renderer.render((
3131
<UserAvatarTooltip {...data}>
3232
<div className="mock-class">
33-
abcedfghik
33+
abcedfghik
3434
</div>
3535
</UserAvatarTooltip>
3636
));
@@ -45,7 +45,7 @@ class Wrapper extends React.Component {
4545
return (
4646
<UserAvatarTooltip {...this.props}>
4747
<div className="mock-class">
48-
abcedfghik
48+
abcedfghik
4949
</div>
5050
</UserAvatarTooltip>
5151
);

__tests__/shared/components/tc-communities/Accordion.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('Snapshot match', () => {
1111
<Accordion>
1212
<AccordionItem title="Test title">
1313
<div>
14-
Test content
14+
Test content
1515
</div>
1616
</AccordionItem>
1717
</Accordion>
@@ -28,12 +28,12 @@ class Wrapper extends React.Component {
2828
<Accordion>
2929
<AccordionItem title="Test title 1">
3030
<div>
31-
Test content 1
31+
Test content 1
3232
</div>
3333
</AccordionItem>
3434
<AccordionItem title="Test title 2">
3535
<div>
36-
Test content 2
36+
Test content 2
3737
</div>
3838
</AccordionItem>
3939
</Accordion>

__tests__/shared/components/tc-communities/AccordionItem.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('Snapshot match', () => {
1313
title="Test title"
1414
>
1515
<div>
16-
Test content
16+
Test content
1717
</div>
1818
</AccordionItem>
1919
));
@@ -25,7 +25,7 @@ Test content
2525
isOpen
2626
>
2727
<div>
28-
Test content
28+
Test content
2929
</div>
3030
</AccordionItem>
3131
));
@@ -40,7 +40,7 @@ class Wrapper extends React.Component {
4040
<div>
4141
<AccordionItem {...this.props} title="Test title">
4242
<div>
43-
Test content
43+
Test content
4444
</div>
4545
</AccordionItem>
4646
</div>

__tests__/shared/components/tc-communities/Section.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Wrapper extends React.Component {
2828
<Provider store={store}>
2929
<Section {...this.props}>
3030
<div>
31-
content
31+
content
3232
</div>
3333
</Section>
3434
</Provider>

__tests__/shared/components/tc-communities/Text.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Wrapper extends React.Component {
99
return (
1010
<Text {...this.props}>
1111
<div>
12-
content
12+
content
1313
</div>
1414
</Text>
1515
);

0 commit comments

Comments
 (0)