Skip to content

Commit bb43620

Browse files
committed
Fixed test, add env variable
1 parent 1fb1aac commit bb43620

File tree

10 files changed

+233
-234
lines changed

10 files changed

+233
-234
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,14 @@ workflows:
275275
filters:
276276
branches:
277277
only:
278-
- feature/poc-recommender-sub-2
278+
- develop
279279
# This is alternate dev env for parallel testing
280280
- "build-test":
281281
context : org-global
282282
filters:
283283
branches:
284284
only:
285-
- feature/poc-recommender-sub-2
285+
- free
286286
# This is alternate dev env for parallel testing
287287
- "build-qa":
288288
context : org-global
@@ -296,7 +296,7 @@ workflows:
296296
filters:
297297
branches:
298298
only:
299-
- feature/poc-recommender-sub-2
299+
- free
300300
# This is stage env for production QA releases
301301
- "build-prod-staging":
302302
context : org-global

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ exports[`Matches shallow shapshot 1`] = `
316316
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
317317
>
318318
<a
319-
href="https://accounts-auth0.topcoder-dev.com?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion&retUrl="
319+
href="localhost:5000?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion&retUrl="
320320
>
321321
Join Community
322322
</a>

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

Lines changed: 62 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
55
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
66
id="challengeFilterContainer"
77
>
8+
<Connect(Container)
9+
setFilterState={[MockFunction]}
10+
/>
811
<div
912
className="src-shared-components-challenge-listing-___style__tc-content-wrapper___1MqlF"
1013
>
@@ -21,41 +24,34 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
2124
setFilterState={[MockFunction]}
2225
/>
2326
</div>
24-
<div
25-
className="src-shared-components-challenge-listing-___style__card-container___3-J4n"
26-
>
27-
<Connect(Container)
28-
setFilterState={[MockFunction]}
29-
/>
30-
<Connect(Listing)
31-
activeBucket="abc"
32-
auth={Object {}}
33-
challenges={Array []}
34-
communityName={null}
35-
expandTag={null}
36-
expandedTags={Array []}
37-
expanding={false}
38-
filterState={Object {}}
39-
loadMoreActive={null}
40-
loadMoreAll={null}
41-
loadMoreMy={null}
42-
loadMoreMyPast={null}
43-
loadMoreOnGoing={null}
44-
loadMoreOpenForRegistration={null}
45-
loadMorePast={null}
46-
loadMoreReviewOpportunities={null}
47-
loadingPastChallenges={false}
48-
newChallengeDetails={false}
49-
openChallengesInNewTabs={false}
50-
preListingMsg={null}
51-
prizeMode="money-usd"
52-
reviewOpportunities={Array []}
53-
selectBucket={[MockFunction]}
54-
setFilterState={[MockFunction]}
55-
setSort={[MockFunction]}
56-
sorts={Object {}}
57-
/>
58-
</div>
27+
<Connect(Listing)
28+
activeBucket="abc"
29+
auth={Object {}}
30+
challenges={Array []}
31+
communityName={null}
32+
expandTag={null}
33+
expandedTags={Array []}
34+
expanding={false}
35+
filterState={Object {}}
36+
loadMoreActive={null}
37+
loadMoreAll={null}
38+
loadMoreMy={null}
39+
loadMoreMyPast={null}
40+
loadMoreOnGoing={null}
41+
loadMoreOpenForRegistration={null}
42+
loadMorePast={null}
43+
loadMoreReviewOpportunities={null}
44+
loadingPastChallenges={false}
45+
newChallengeDetails={false}
46+
openChallengesInNewTabs={false}
47+
preListingMsg={null}
48+
prizeMode="money-usd"
49+
reviewOpportunities={Array []}
50+
selectBucket={[MockFunction]}
51+
setFilterState={[MockFunction]}
52+
setSort={[MockFunction]}
53+
sorts={Object {}}
54+
/>
5955
</div>
6056
</div>
6157
`;
@@ -65,6 +61,9 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
6561
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
6662
id="challengeFilterContainer"
6763
>
64+
<Connect(Container)
65+
setFilterState={[MockFunction]}
66+
/>
6867
<div
6968
className="src-shared-components-challenge-listing-___style__tc-content-wrapper___1MqlF"
7069
>
@@ -81,41 +80,34 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
8180
setFilterState={[MockFunction]}
8281
/>
8382
</div>
84-
<div
85-
className="src-shared-components-challenge-listing-___style__card-container___3-J4n"
86-
>
87-
<Connect(Container)
88-
setFilterState={[MockFunction]}
89-
/>
90-
<Connect(Listing)
91-
activeBucket="abc"
92-
auth={Object {}}
93-
challenges={Array []}
94-
communityName={null}
95-
expandTag={null}
96-
expandedTags={Array []}
97-
expanding={false}
98-
filterState={Object {}}
99-
loadMoreActive={null}
100-
loadMoreAll={null}
101-
loadMoreMy={null}
102-
loadMoreMyPast={null}
103-
loadMoreOnGoing={null}
104-
loadMoreOpenForRegistration={null}
105-
loadMorePast={null}
106-
loadMoreReviewOpportunities={null}
107-
loadingPastChallenges={false}
108-
newChallengeDetails={false}
109-
openChallengesInNewTabs={false}
110-
preListingMsg={null}
111-
prizeMode="money-usd"
112-
reviewOpportunities={Array []}
113-
selectBucket={[MockFunction]}
114-
setFilterState={[MockFunction]}
115-
setSort={[MockFunction]}
116-
sorts={Object {}}
117-
/>
118-
</div>
83+
<Connect(Listing)
84+
activeBucket="abc"
85+
auth={Object {}}
86+
challenges={Array []}
87+
communityName={null}
88+
expandTag={null}
89+
expandedTags={Array []}
90+
expanding={false}
91+
filterState={Object {}}
92+
loadMoreActive={null}
93+
loadMoreAll={null}
94+
loadMoreMy={null}
95+
loadMoreMyPast={null}
96+
loadMoreOnGoing={null}
97+
loadMoreOpenForRegistration={null}
98+
loadMorePast={null}
99+
loadMoreReviewOpportunities={null}
100+
loadingPastChallenges={false}
101+
newChallengeDetails={false}
102+
openChallengesInNewTabs={false}
103+
preListingMsg={null}
104+
prizeMode="money-usd"
105+
reviewOpportunities={Array []}
106+
selectBucket={[MockFunction]}
107+
setFilterState={[MockFunction]}
108+
setSort={[MockFunction]}
109+
sorts={Object {}}
110+
/>
119111
</div>
120112
</div>
121113
`;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`Matches shallow shapshot 1`] = `
2020
>
2121
<a
2222
className="tc-btn-md tc-btn-primary"
23-
href="https://accounts-auth0.topcoder-dev.com/member?utm_source="
23+
href="localhost:5000/member?utm_source="
2424
onClick={[Function]}
2525
>
2626
Log In Here

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,4 +414,5 @@ module.exports = {
414414
GUIKIT: {
415415
DEBOUNCE_ON_CHANGE_TIME: 150,
416416
},
417+
ENABLE_RECOMMENDER: true,
417418
};

config/production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,5 @@ module.exports = {
213213
TC_EDU_ARTICLES_PATH: '/articles',
214214
TC_EDU_SEARCH_PATH: '/search',
215215
TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP: 3,
216+
ENABLE_RECOMMENDER: true,
216217
};

0 commit comments

Comments
 (0)