Skip to content

Commit 775d4d8

Browse files
authored
Merge pull request #5217 from nursoltan-s/fix-failing-tests
added local test config
2 parents 282609a + 89345d0 commit 775d4d8

File tree

3 files changed

+189
-5
lines changed

3 files changed

+189
-5
lines changed
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
{
2+
"env": "dev",
3+
"logoRedirectionUrl": "http://local.topcoder.com:3000/",
4+
"businessUrl": "http://local.topcoder.com:3000/",
5+
"switchToBusinessUrl": "https://www.topcoder.com/",
6+
"loginUrl": "https://auth.topcoder-dev.com/",
7+
"redirectLoginUrl": "https://accounts-auth0.topcoder-dev.com/?retUrl=http://www.topcoder.com/",
8+
"homePageUrl": "http://local.topcoder.com:3000/",
9+
"splashPageUrl": "http://local.topcoder.com:3000/splash/",
10+
"logoutUrl": "http://local.topcoder.com:3000/logout",
11+
"toolsUrl": "http://local.topcoder.com:3000/settings/tools",
12+
"accountUrl": "http://local.topcoder.com:3000/settings/account",
13+
"profileUrl": "http://local.topcoder.com:3000/settings/profile",
14+
"preferencesUrl": "http://local.topcoder.com:3000/settings/preferences",
15+
"challengeListingUrl": "http://local.topcoder.com:3000/challenges",
16+
"subMenuUrls": {
17+
"overview": "http://local.topcoder.com:3000/community/learn",
18+
"howItWorks": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder",
19+
"allChallenges": "http://www.topcoder-dev.com/challenges",
20+
"competitiveProgramming": "http://local.topcoder.com:3000/community/arena",
21+
"taas": "http://local.topcoder.com:3000/gigs",
22+
"practice": "http://local.topcoder.com:3000/community/practice",
23+
"competitiveProgrammingThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Competitive%20Programming",
24+
"dataScienceThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Data%20Science&tax=",
25+
"designThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Design&tax=",
26+
"developmentThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Development&tax=",
27+
"qaThrive": "http://local.topcoder.com:3000/thrive/tracks?track=QA&tax=",
28+
"tco": "http://local.topcoder.com:3000/community/member-programs/topcoder-open",
29+
"programs": "http://local.topcoder.com:3000/community/member-programs",
30+
"forums": "https://accounts.topcoder-dev.com/member",
31+
"statistics": "http://local.topcoder.com:3000/community/statistics",
32+
"blog": "https://www.topcoder.com/blog/",
33+
"thrive": "http://local.topcoder.com:3000/thrive"
34+
},
35+
"subMenuUrlsAfterLogin": {
36+
"dashboard": "http://local.topcoder.com:3000/my-dashboard",
37+
"myProfile": "http://local.topcoder.com:3000/members/tester1234",
38+
"payments": "https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false",
39+
"competitiveProgramming": "http://local.topcoder.com:3000/community/arena",
40+
"forums": "https://apps.topcoder-dev.com/forums/"
41+
},
42+
"footerLinks": {
43+
"allChallenges": "http://local.topcoder.com:3000/challenges",
44+
"competitiveProgramming": "http://local.topcoder.com:3000/community/arena",
45+
"taas": "http://local.topcoder.com:3000/gigs",
46+
"competitiveProgrammingThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Competitive%20Programming",
47+
"dataScienceThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Data%20Science",
48+
"designThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Design",
49+
"developmentThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Development",
50+
"qaThrive": "http://local.topcoder.com:3000/thrive/tracks?track=QA",
51+
"tco": "http://local.topcoder.com:3000/community/member-programs/topcoder-open",
52+
"programs": "http://local.topcoder.com:3000/community/member-programs",
53+
"forums": "https://apps.topcoder.com/forums",
54+
"statistics": "http://local.topcoder.com:3000/community/statistics",
55+
"blog": "https://www.topcoder.com/blog/",
56+
"thrive": "http://local.topcoder.com:3000/thrive",
57+
"gettingPaid": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder&tax=Getting%20Paid",
58+
"faq": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder&tax=FAQ",
59+
"generalInfo": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder",
60+
"websiteHelp": "mailto:[email protected]",
61+
"admins": "http://local.topcoder.com:3000/community/admins",
62+
"contactUs": "http://local.topcoder.com:3000/community/contact",
63+
"joinCommunity": "https://accounts.topcoder.com/member/registration?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion",
64+
"aboutCommunity": "http://local.topcoder.com:3000/community/learn",
65+
"changeLog": "http://local.topcoder.com:3000/community/changelog",
66+
"talkToSales": "https://go.topcoder.com/contact/",
67+
"events": "http://local.topcoder.com:3000/community/events",
68+
"terms": "http://local.topcoder.com:3000/community/terms",
69+
"challengePipeline": "http://local.topcoder.com:3000/community/pipeline",
70+
"practice": "http://local.topcoder.com:3000/community/practice"
71+
},
72+
"footerLinksAfterLogin": {
73+
"competitiveProgramming": "http://local.topcoder.com:3000/community/arena"
74+
},
75+
"socialLinks": {
76+
"facebook": "https://www.facebook.com/topcoder/",
77+
"youtube": "https://www.youtube.com/c/TopcoderOfficial",
78+
"linkedin": "www.linkedin.com",
79+
"twitter": "https://twitter.com/topcoder",
80+
"instagram": "https://www.instagram.com/topcoder/"
81+
},
82+
"forumSettingUrl": "https://apps.topcoder-dev.com/forums/?module=Settings",
83+
"paymentSettingUrl": "https://community.topcoder-dev.com/tc?module=EditPaymentPreferences",
84+
"helpUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
85+
"searchUrl": "http://local.topcoder.com:3000/search/members",
86+
"allNotificationsUrl": "http://local.topcoder.com:3000/notifications",
87+
"policiesUrl": "http://local.topcoder.com:3000/policy",
88+
"username": "tester1234",
89+
"password": "appirio123",
90+
"email": "[email protected]",
91+
"challangesLinks": {
92+
"rssFeedUrl": "http://feeds.topcoder-dev.com/challenges/feed",
93+
"aboutUrl": "http://local.topcoder.com:3000/about-the-2018-topcoder-open/",
94+
"contactUrl": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder&tax=Help%20Articles/hc/en-us/articles/219069687-Contact-Support",
95+
"privacyUrl": "http://local.topcoder.com:3000/privacy-policy/",
96+
"helpUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles",
97+
"termsUrl": "http://local.topcoder.com:3000/community/how-it-works/terms/"
98+
},
99+
"challengeDetail": {
100+
"url": "http://local.topcoder.com:3000/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27",
101+
"termsLinkText": "Standard Terms for Topcoder Competitions v2.2",
102+
"challengeName": "Test Automation challenge",
103+
"challengeTag": "Challenge",
104+
"termUrl": "http://local.topcoder.com:3000/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95",
105+
"forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0",
106+
"submissionUrl": "http://local.topcoder.com:3000/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27/submit",
107+
"scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610"
108+
},
109+
"myDashboard": {
110+
"url": "http://local.topcoder.com:3000/my-dashboard",
111+
"challenge": {
112+
"name": "Test_challenge_Automation",
113+
"currentPhase": "Submission",
114+
"linkToSubmit": "",
115+
"userRole": ""
116+
},
117+
"community": {
118+
"name": "Blockchain Community",
119+
"learnMoreUrl": "https://blockchain.topcoder-dev.com/"
120+
}
121+
},
122+
"memberProfile": {
123+
"url": "http://local.topcoder.com:3000/members",
124+
"profileInfo": {
125+
"handle": "iamtong",
126+
"numberOfCollapsedSkills": 10,
127+
"verifiedSkill": "HTML5",
128+
"noneVerifiedSkill": "Marvel - Design",
129+
"country": "THAILAND",
130+
"memberSince": "MEMBER SINCE MAY, 2009",
131+
"tracks": ["COPILOT", "DEVELOP", "DESIGN"],
132+
"quote": "I'm a designer focusing on designing mobile/ web applications and user experience.",
133+
"forumLink": "https://apps.topcoder-dev.com/forums/?module=History&userID=22781893"
134+
},
135+
"memberHaveWebSectionInfo": {
136+
"handle": "oton",
137+
"webLink": "HTTPS://ARIFWIDIANTO.COM"
138+
},
139+
"copilotProfile": {
140+
"handle": "iamtong",
141+
"trackName": "COPILOT",
142+
"fullfillmentInfo": {
143+
"name": "COPILOT",
144+
"info": "100%",
145+
"infoTitle": "FULFILLMENT",
146+
"link": "http://local.topcoder.com:3000/members/iamtong/details/?track=COPILOT&subTrack=COPILOT"
147+
}
148+
},
149+
"designProfile": {
150+
"handle": "iamtong",
151+
"trackName": "DESIGN",
152+
"numberOfSubtracks": 11,
153+
"winInfo": {
154+
"name": "WEB DESIGNS",
155+
"info": "189",
156+
"infoTitle": "WINS",
157+
"link": "http://local.topcoder.com:3000/members/iamtong/details/?track=DESIGN&subTrack=WEB_DESIGNS"
158+
}
159+
},
160+
"developmentProfile": {
161+
"handle": "winterflame",
162+
"trackName": "DEVELOP",
163+
"numberOfSubtracks": 14,
164+
"winInfo": {
165+
"name": "FIRST2FINISH",
166+
"info": "2",
167+
"infoTitle": "WINS",
168+
"link": "http://local.topcoder.com:3000/members/winterflame/details/?track=DEVELOP&subTrack=FIRST_2_FINISH"
169+
}
170+
},
171+
"dataScienceProfile": {
172+
"handle": "FireIce",
173+
"trackName": "DATA_SCIENCE",
174+
"numberOfSubtracks": 2,
175+
"ratingInfo": {
176+
"name": "MARATHON MATCH",
177+
"info": "999",
178+
"infoTitle": "RATING",
179+
"link": "http://local.topcoder.com:3000/members/FireIce/details/?track=DATA_SCIENCE&subTrack=MARATHON_MATCH"
180+
}
181+
}
182+
}
183+
}

automated-smoke-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"webdriver-update": "node node_modules/protractor/bin/webdriver-manager update",
3434
"pretest": "npm run webdriver-update && npm run clean && npm run tsc",
3535
"test": "protractor temp/conf.js",
36-
"local-test":"cp config/automation-config-dev.json config/config.json && protractor temp/conf.js"
36+
"local-test":"cp config/automation-config-local.json config/config.json && protractor temp/conf.js"
3737
},
3838
"keywords": [
3939
"protractor",

automated-smoke-test/test-suites/tc-challenge-listing.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('Topcoder Challenge Listing Page Tests: ', () => {
3232
await ChallengeListingPageHelper.verifyLoginLink();
3333
});
3434

35-
xit('[TC_003] should verify whether the user is able to search the member by their username/skill using the search icon', async () => {
35+
it('[TC_003] should verify whether the user is able to search the member by their username/skill using the search icon', async () => {
3636
await HeaderHelper.verifySearchByUsername(testData.search.username);
3737
await ChallengeListingPageHelper.open();
3838
await HeaderHelper.verifySearchBySkill(testData.search.skill);
@@ -165,9 +165,10 @@ describe('Topcoder Challenge Listing Page Tests: ', () => {
165165
await ChallengeListingPageHelper.verifyRssPage();
166166
});*/
167167

168-
it('[TC_026] should verify whether the page is redirected to the respective page on clicking the link(About, Contact, Help, Privacy, Terms)', async () => {
169-
await ChallengeListingPageHelper.verifyLinksUnderRss();
170-
});
168+
// Commented as the links are hidden
169+
/*it('[TC_026] should verify whether the page is redirected to the respective page on clicking the link(About, Contact, Help, Privacy, Terms)', async () => {
170+
await ChallengeListingPageHelper.verifyLinksUnderRss();
171+
});*/
171172
});
172173

173174
/**

0 commit comments

Comments
 (0)