diff --git a/automated-smoke-test/config/automation-config-dev.json b/automated-smoke-test/config/automation-config-dev.json index f8ace497f8..dfaca38356 100644 --- a/automated-smoke-test/config/automation-config-dev.json +++ b/automated-smoke-test/config/automation-config-dev.json @@ -1,76 +1,76 @@ { "env": "dev", - "logoRedirectionUrl": "https://www.topcoder-dev.com/", - "businessUrl": "https://www.topcoder-dev.com/", + "logoRedirectionUrl": "https://community-app.topcoder-dev.com/", + "businessUrl": "https://community-app.topcoder-dev.com/", "switchToBusinessUrl": "https://www.topcoder.com/", "loginUrl": "https://auth.topcoder-dev.com/", "redirectLoginUrl": "https://accounts-auth0.topcoder-dev.com/?retUrl=http://www.topcoder.com/", - "homePageUrl": "https://www.topcoder-dev.com/", - "splashPageUrl": "https://www.topcoder-dev.com/splash/", - "logoutUrl": "https://www.topcoder-dev.com/logout", - "toolsUrl": "https://www.topcoder-dev.com/settings/tools", - "accountUrl": "https://www.topcoder-dev.com/settings/account", - "profileUrl": "https://www.topcoder-dev.com/settings/profile", - "preferencesUrl": "https://www.topcoder-dev.com/settings/preferences", - "challengeListingUrl": "https://www.topcoder-dev.com/challenges", + "homePageUrl": "https://community-app.topcoder-dev.com/", + "splashPageUrl": "https://community-app.topcoder-dev.com/splash/", + "logoutUrl": "https://topcoder-dev.com/logout", + "toolsUrl": "https://community-app.topcoder-dev.com/settings/tools", + "accountUrl": "https://community-app.topcoder-dev.com/settings/account", + "profileUrl": "https://community-app.topcoder-dev.com/settings/profile", + "preferencesUrl": "https://community-app.topcoder-dev.com/settings/preferences", + "challengeListingUrl": "https://community-app.topcoder-dev.com/challenges", "subMenuUrls": { - "overview": "https://www.topcoder-dev.com/community/learn", - "howItWorks": "https://www.topcoder-dev.com/thrive/tracks?track=Topcoder", - "allChallenges": "http://www.topcoder-dev.com/challenges", - "competitiveProgramming": "https://www.topcoder-dev.com/community/arena", - "taas": "https://www.topcoder-dev.com/gigs", - "practice": "https://www.topcoder-dev.com/community/practice", - "competitiveProgrammingThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming", - "dataScienceThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science&tax=", - "designThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Design&tax=", - "developmentThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Development&tax=", - "qaThrive": "https://www.topcoder-dev.com/thrive/tracks?track=QA&tax=", - "tco": "https://www.topcoder-dev.com/community/member-programs/topcoder-open", - "programs": "https://www.topcoder-dev.com/community/member-programs", - "forums": "https://accounts.topcoder-dev.com/member", - "statistics": "https://www.topcoder-dev.com/community/statistics", + "overview": "https://community-app.topcoder-dev.com/community/learn", + "howItWorks": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder", + "allChallenges": "http://community-app.topcoder-dev.com/challenges", + "competitiveProgramming": "https://community-app.topcoder-dev.com/community/arena", + "taas": "https://community-app.topcoder-dev.com/gigs", + "practice": "https://community-app.topcoder-dev.com/community/practice", + "competitiveProgrammingThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming", + "dataScienceThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Data%20Science&tax=", + "designThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Design&tax=", + "developmentThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Development&tax=", + "qaThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=QA&tax=", + "tco": "https://community-app.topcoder-dev.com/community/member-programs/topcoder-open", + "programs": "https://community-app.topcoder-dev.com/community/member-programs", + "forums": "https://accoucommunity-app.topcoder-dev.com/member", + "statistics": "https://community-app.topcoder-dev.com/community/statistics", "blog": "https://www.topcoder.com/blog/", - "thrive": "https://www.topcoder-dev.com/thrive" + "thrive": "https://community-app.topcoder-dev.com/thrive" }, "subMenuUrlsAfterLogin": { - "dashboard": "https://www.topcoder-dev.com/my-dashboard", - "myProfile": "https://www.topcoder-dev.com/members/tester1234", - "payments": "https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false", - "competitiveProgramming": "https://www.topcoder-dev.com/community/arena", - "forums": "https://apps.topcoder-dev.com/forums/" + "dashboard": "https://community-app.topcoder-dev.com/my-dashboard", + "myProfile": "https://community-app.topcoder-dev.com/members/tester1234", + "payments": "https://communcommunity-app.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false", + "competitiveProgramming": "https://community-app.topcoder-dev.com/community/arena", + "forums": "https://acommunity-app.topcoder-dev.com/forums/" }, "footerLinks": { - "allChallenges": "https://www.topcoder-dev.com/challenges", - "competitiveProgramming": "https://www.topcoder-dev.com/community/arena", - "taas": "https://www.topcoder-dev.com/gigs", - "competitiveProgrammingThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming", - "dataScienceThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science", - "designThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Design", - "developmentThrive": "https://www.topcoder-dev.com/thrive/tracks?track=Development", - "qaThrive": "https://www.topcoder-dev.com/thrive/tracks?track=QA", - "tco": "https://www.topcoder-dev.com/community/member-programs/topcoder-open", - "programs": "https://www.topcoder-dev.com/community/member-programs", + "allChallenges": "https://community-app.topcoder-dev.com/challenges", + "competitiveProgramming": "https://community-app.topcoder-dev.com/community/arena", + "taas": "https://community-app.topcoder-dev.com/gigs", + "competitiveProgrammingThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Competitive%20Programming", + "dataScienceThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Data%20Science", + "designThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Design", + "developmentThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=Development", + "qaThrive": "https://community-app.topcoder-dev.com/thrive/tracks?track=QA", + "tco": "https://community-app.topcoder-dev.com/community/member-programs/topcoder-open", + "programs": "https://community-app.topcoder-dev.com/community/member-programs", "forums": "https://apps.topcoder.com/forums", - "statistics": "https://www.topcoder-dev.com/community/statistics", + "statistics": "https://community-app.topcoder-dev.com/community/statistics", "blog": "https://www.topcoder.com/blog/", - "thrive": "https://www.topcoder-dev.com/thrive", - "gettingPaid": "https://www.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Getting%20Paid", - "faq": "https://www.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=FAQ", - "generalInfo": "https://www.topcoder-dev.com/thrive/tracks?track=Topcoder", + "thrive": "https://community-app.topcoder-dev.com/thrive", + "gettingPaid": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Getting%20Paid", + "faq": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=FAQ", + "generalInfo": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder", "websiteHelp": "mailto:support@topcoder.com", - "admins": "https://www.topcoder-dev.com/community/admins", - "contactUs": "https://www.topcoder-dev.com/community/contact", + "admins": "https://community-app.topcoder-dev.com/community/admins", + "contactUs": "https://community-app.topcoder-dev.com/community/contact", "joinCommunity": "https://accounts.topcoder.com/member/registration?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion", - "aboutCommunity": "https://www.topcoder-dev.com/community/learn", - "changeLog": "https://www.topcoder-dev.com/community/changelog", + "aboutCommunity": "https://community-app.topcoder-dev.com/community/learn", + "changeLog": "https://community-app.topcoder-dev.com/community/changelog", "talkToSales": "https://go.topcoder.com/contact/", - "events": "https://www.topcoder-dev.com/community/events", - "terms": "https://www.topcoder-dev.com/community/terms", - "challengePipeline": "https://www.topcoder-dev.com/community/pipeline", - "practice": "https://www.topcoder-dev.com/community/practice" + "events": "https://community-app.topcoder-dev.com/community/events", + "terms": "https://community-app.topcoder-dev.com/community/terms", + "challengePipeline": "https://community-app.topcoder-dev.com/community/pipeline", + "practice": "https://community-app.topcoder-dev.com/community/practice" }, "footerLinksAfterLogin": { - "competitiveProgramming": "https://www.topcoder-dev.com/community/arena" + "competitiveProgramming": "https://community-app.topcoder-dev.com/community/arena" }, "socialLinks": { "facebook": "https://www.facebook.com/topcoder/", @@ -79,35 +79,35 @@ "twitter": "https://twitter.com/topcoder", "instagram": "https://www.instagram.com/topcoder/" }, - "forumSettingUrl": "https://apps.topcoder-dev.com/forums/?module=Settings", - "paymentSettingUrl": "https://community.topcoder-dev.com/tc?module=EditPaymentPreferences", - "helpUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", - "searchUrl": "https://www.topcoder-dev.com/search/members", - "allNotificationsUrl": "https://www.topcoder-dev.com/notifications", - "policiesUrl": "https://www.topcoder-dev.com/policy", + "forumSettingUrl": "https://acommunity-app.topcoder-dev.com/forums/?module=Settings", + "paymentSettingUrl": "https://communcommunity-app.topcoder-dev.com/tc?module=EditPaymentPreferences", + "helpUrl": "https://community-community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", + "searchUrl": "https://community-app.topcoder-dev.com/search/members", + "allNotificationsUrl": "https://community-app.topcoder-dev.com/notifications", + "policiesUrl": "https://community-app.topcoder-dev.com/policy", "username": "tester1234", "password": "appirio123", "email": "sathya.jayabal@gmail.com", "challangesLinks": { - "rssFeedUrl": "http://feeds.topcoder-dev.com/challenges/feed", - "aboutUrl": "https://www.topcoder-dev.com/about-the-2018-topcoder-open/", - "contactUrl": "https://www.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles/hc/en-us/articles/219069687-Contact-Support", - "privacyUrl": "https://www.topcoder-dev.com/privacy-policy/", - "helpUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", - "termsUrl": "https://www.topcoder-dev.com/community/how-it-works/terms/" + "rssFeedUrl": "http://fecommunity-app.topcoder-dev.com/challenges/feed", + "aboutUrl": "https://community-app.topcoder-dev.com/about-the-2018-topcoder-open/", + "contactUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles/hc/en-us/articles/219069687-Contact-Support", + "privacyUrl": "https://community-app.topcoder-dev.com/privacy-policy/", + "helpUrl": "https://community-community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", + "termsUrl": "https://community-app.topcoder-dev.com/community/how-it-works/terms/" }, "challengeDetail": { - "url": "https://www.topcoder-dev.com/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27", + "url": "https://community-app.topcoder-dev.com/challenges/53383a29-80ef-4230-b48f-08a6d302f1ed", "termsLinkText": "Standard Terms for Topcoder Competitions v2.2", - "challengeName": "Test Automation challenge", - "challengeTag": "Challenge", - "termUrl": "https://www.topcoder-dev.com/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95", - "forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0", - "submissionUrl": "https://www.topcoder-dev.com/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27/submit", + "challengeName": "[Do not Register] Sample automaton Challenge", + "challengeTag": "Java", + "termUrl": "https://community-app.topcoder-dev.com/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95", + "forumUrl": "https://submission-revcommunity-app.topcoder-dev.com/challenges/30057057", + "submissionUrl": "https://community-app.topcoder-dev.com/challenges/53383a29-80ef-4230-b48f-08a6d302f1ed/submit", "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610" }, "myDashboard": { - "url": "https://www.topcoder-dev.com/my-dashboard", + "url": "https://community-app.topcoder-dev.com/my-dashboard", "challenge": { "name": "Test_challenge_Automation", "currentPhase": "Submission", @@ -116,11 +116,11 @@ }, "community": { "name": "Blockchain Community", - "learnMoreUrl": "https://blockchain.topcoder-dev.com/" + "learnMoreUrl": "https://blockchcommunity-app.topcoder-dev.com/" } }, "memberProfile": { - "url": "https://www.topcoder-dev.com/members", + "url": "https://community-app.topcoder-dev.com/members", "profileInfo": { "handle": "iamtong", "numberOfCollapsedSkills": 10, @@ -130,7 +130,7 @@ "memberSince": "MEMBER SINCE MAY, 2009", "tracks": ["COPILOT", "DEVELOP", "DESIGN"], "quote": "I'm a designer focusing on designing mobile/ web applications and user experience.", - "forumLink": "https://apps.topcoder-dev.com/forums/?module=History&userID=22781893" + "forumLink": "https://acommunity-app.topcoder-dev.com/forums/?module=History&userID=22781893" }, "memberHaveWebSectionInfo": { "handle": "oton", @@ -143,7 +143,7 @@ "name": "COPILOT", "info": "100%", "infoTitle": "FULFILLMENT", - "link": "https://www.topcoder-dev.com/members/iamtong/details/?track=COPILOT&subTrack=COPILOT" + "link": "https://community-app.topcoder-dev.com/members/iamtong/details/?track=COPILOT&subTrack=COPILOT" } }, "designProfile": { @@ -154,7 +154,7 @@ "name": "WEB DESIGNS", "info": "189", "infoTitle": "WINS", - "link": "https://www.topcoder-dev.com/members/iamtong/details/?track=DESIGN&subTrack=WEB_DESIGNS" + "link": "https://community-app.topcoder-dev.com/members/iamtong/details/?track=DESIGN&subTrack=WEB_DESIGNS" } }, "developmentProfile": { @@ -165,7 +165,7 @@ "name": "FIRST2FINISH", "info": "2", "infoTitle": "WINS", - "link": "https://www.topcoder-dev.com/members/winterflame/details/?track=DEVELOP&subTrack=FIRST_2_FINISH" + "link": "https://community-app.topcoder-dev.com/members/winterflame/details/?track=DEVELOP&subTrack=FIRST_2_FINISH" } }, "dataScienceProfile": { @@ -176,7 +176,7 @@ "name": "MARATHON MATCH", "info": "999", "infoTitle": "RATING", - "link": "https://www.topcoder-dev.com/members/FireIce/details/?track=DATA_SCIENCE&subTrack=MARATHON_MATCH" + "link": "https://community-app.topcoder-dev.com/members/FireIce/details/?track=DATA_SCIENCE&subTrack=MARATHON_MATCH" } } } diff --git a/automated-smoke-test/config/automation-config-local.json b/automated-smoke-test/config/automation-config-local.json index 6779fb6583..44c399f53c 100644 --- a/automated-smoke-test/config/automation-config-local.json +++ b/automated-smoke-test/config/automation-config-local.json @@ -1,76 +1,71 @@ { - "env": "dev", - "logoRedirectionUrl": "http://local.topcoder.com:3000/", - "businessUrl": "http://local.topcoder.com:3000/", - "switchToBusinessUrl": "https://www.topcoder.com/", - "loginUrl": "https://auth.topcoder-dev.com/", - "redirectLoginUrl": "https://accounts-auth0.topcoder-dev.com/?retUrl=http://www.topcoder.com/", - "homePageUrl": "http://local.topcoder.com:3000/", - "splashPageUrl": "http://local.topcoder.com:3000/splash/", - "logoutUrl": "http://local.topcoder.com:3000/logout", - "toolsUrl": "http://local.topcoder.com:3000/settings/tools", - "accountUrl": "http://local.topcoder.com:3000/settings/account", - "profileUrl": "http://local.topcoder.com:3000/settings/profile", - "preferencesUrl": "http://local.topcoder.com:3000/settings/preferences", - "challengeListingUrl": "http://local.topcoder.com:3000/challenges", + "env": "local", + "logoRedirectionUrl": "http://localhost:3000/", + "businessUrl": "http://localhost:3000/", + "switchToBusinessUrl": "http://localhost:3000/", + "loginUrl": "http://localhost:5000", + "redirectLoginUrl": "http://localhost:5000/?retUrl=http://localhost:3000", + "homePageUrl": "http://localhost:3000/", + "splashPageUrl": "http://localhost:3000/splash/", + "logoutUrl": "https://topcoder.com/logout", + "toolsUrl": "http://localhost:3000/settings/tools", + "accountUrl": "http://localhost:3000/settings/account", + "profileUrl": "http://localhost:3000/settings/profile", + "preferencesUrl": "http://localhost:3000/settings/preferences", + "challengeListingUrl": "http://localhost:3000/challenges", "subMenuUrls": { - "overview": "http://local.topcoder.com:3000/community/learn", - "howItWorks": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder", - "allChallenges": "http://www.topcoder-dev.com/challenges", - "competitiveProgramming": "http://local.topcoder.com:3000/community/arena", - "taas": "http://local.topcoder.com:3000/gigs", - "practice": "http://local.topcoder.com:3000/community/practice", - "competitiveProgrammingThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Competitive%20Programming", - "dataScienceThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Data%20Science&tax=", - "designThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Design&tax=", - "developmentThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Development&tax=", - "qaThrive": "http://local.topcoder.com:3000/thrive/tracks?track=QA&tax=", - "tco": "http://local.topcoder.com:3000/community/member-programs/topcoder-open", - "programs": "http://local.topcoder.com:3000/community/member-programs", - "forums": "https://accounts.topcoder-dev.com/member", - "statistics": "http://local.topcoder.com:3000/community/statistics", - "blog": "https://www.topcoder.com/blog/", - "thrive": "http://local.topcoder.com:3000/thrive" + "overview": "http://localhost:3000/community/learn", + "howItWorks": "http://localhost:3000/thrive/tracks?track=Topcoder", + "allChallenges": "http://localhost:3000/challenges", + "competitiveProgramming": "http://localhost:3000/community/arena", + "taas": "http://localhost:3000/gigs", + "practice": "http://localhost:3000/community/practice", + "competitiveProgrammingThrive": "http://localhost:3000/thrive/tracks?track=Competitive%20Programming", + "dataScienceThrive": "http://localhost:3000/thrive/tracks?track=Data%20Science&tax=", + "designThrive": "http://localhost:3000/thrive/tracks?track=Design&tax=", + "developmentThrive": "http://localhost:3000/thrive/tracks?track=Development&tax=", + "qaThrive": "http://localhost:3000/thrive/tracks?track=QA&tax=", + "tco": "http://localhost:3000/community/member-programs/topcoder-open", + "programs": "http://localhost:3000/community/member-programs", + "forums": "https://accounts.topcoder.com/member", + "statistics": "http://localhost:3000/community/statistics", + "blog": "http://localhost:3000/blog/", + "thrive": "http://localhost:3000/thrive" }, "subMenuUrlsAfterLogin": { - "dashboard": "http://local.topcoder.com:3000/my-dashboard", - "myProfile": "http://local.topcoder.com:3000/members/tester1234", - "payments": "https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false", - "competitiveProgramming": "http://local.topcoder.com:3000/community/arena", - "forums": "https://apps.topcoder-dev.com/forums/" + "dashboard": "http://localhost:3000/my-dashboard", + "myProfile": "http://localhost:3000/members/CustomerUser", + "payments": "https://community.topcoder.com/PactsMemberServlet?module=PaymentHistory&full_list=false", + "forums": "https://apps.topcoder.com/forums/" }, "footerLinks": { - "allChallenges": "http://local.topcoder.com:3000/challenges", - "competitiveProgramming": "http://local.topcoder.com:3000/community/arena", - "taas": "http://local.topcoder.com:3000/gigs", - "competitiveProgrammingThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Competitive%20Programming", - "dataScienceThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Data%20Science", - "designThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Design", - "developmentThrive": "http://local.topcoder.com:3000/thrive/tracks?track=Development", - "qaThrive": "http://local.topcoder.com:3000/thrive/tracks?track=QA", - "tco": "http://local.topcoder.com:3000/community/member-programs/topcoder-open", - "programs": "http://local.topcoder.com:3000/community/member-programs", + "allChallenges": "http://localhost:3000/challenges", + "competitiveProgramming": "http://localhost:3000/community/arena", + "taas": "http://localhost:3000/gigs", + "competitiveProgrammingThrive": "http://localhost:3000/thrive/tracks?track=Competitive%20Programming", + "dataScienceThrive": "http://localhost:3000/thrive/tracks?track=Data%20Science", + "designThrive": "http://localhost:3000/thrive/tracks?track=Design", + "developmentThrive": "http://localhost:3000/thrive/tracks?track=Development", + "qaThrive": "http://localhost:3000/thrive/tracks?track=QA", + "tco": "http://localhost:3000/community/member-programs/topcoder-open", + "programs": "http://localhost:3000/community/member-programs", "forums": "https://apps.topcoder.com/forums", - "statistics": "http://local.topcoder.com:3000/community/statistics", - "blog": "https://www.topcoder.com/blog/", - "thrive": "http://local.topcoder.com:3000/thrive", - "gettingPaid": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder&tax=Getting%20Paid", - "faq": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder&tax=FAQ", - "generalInfo": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder", + "statistics": "http://localhost:3000/community/statistics", + "blog": "http://localhost:3000/blog/", + "thrive": "http://localhost:3000/thrive", + "gettingPaid": "http://localhost:3000/thrive/tracks?track=Topcoder&tax=Getting%20Paid", + "faq": "http://localhost:3000/thrive/tracks?track=Topcoder&tax=FAQ", + "generalInfo": "http://localhost:3000/thrive/tracks?track=Topcoder", "websiteHelp": "mailto:support@topcoder.com", - "admins": "http://local.topcoder.com:3000/community/admins", - "contactUs": "http://local.topcoder.com:3000/community/contact", + "admins": "http://localhost:3000/community/admins", + "contactUs": "http://localhost:3000/community/contact", "joinCommunity": "https://accounts.topcoder.com/member/registration?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion", - "aboutCommunity": "http://local.topcoder.com:3000/community/learn", - "changeLog": "http://local.topcoder.com:3000/community/changelog", + "aboutCommunity": "http://localhost:3000/community/learn", + "changeLog": "http://localhost:3000/community/changelog", "talkToSales": "https://go.topcoder.com/contact/", - "events": "http://local.topcoder.com:3000/community/events", - "terms": "http://local.topcoder.com:3000/community/terms", - "challengePipeline": "http://local.topcoder.com:3000/community/pipeline", - "practice": "http://local.topcoder.com:3000/community/practice" - }, - "footerLinksAfterLogin": { - "competitiveProgramming": "http://local.topcoder.com:3000/community/arena" + "events": "http://localhost:3000/community/events", + "terms": "http://localhost:3000/community/terms", + "challengePipeline": "http://localhost:3000/community/pipeline" }, "socialLinks": { "facebook": "https://www.facebook.com/topcoder/", @@ -79,48 +74,48 @@ "twitter": "https://twitter.com/topcoder", "instagram": "https://www.instagram.com/topcoder/" }, - "forumSettingUrl": "https://apps.topcoder-dev.com/forums/?module=Settings", - "paymentSettingUrl": "https://community.topcoder-dev.com/tc?module=EditPaymentPreferences", - "helpUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", - "searchUrl": "http://local.topcoder.com:3000/search/members", - "allNotificationsUrl": "http://local.topcoder.com:3000/notifications", - "policiesUrl": "http://local.topcoder.com:3000/policy", - "username": "tester1234", + "forumSettingUrl": "https://apps.topcoder.com/forums/?module=Settings", + "paymentSettingUrl": "https://community.topcoder.com/PactsMemberServlet?module=PaymentHistory&full_list=false", + "helpUrl": "http://localhost:3000/thrive/tracks?track=Topcoder&tax=Help%20Articles", + "searchUrl": "http://localhost:3000/search/members", + "allNotificationsUrl": "http://localhost:3000/notifications", + "policiesUrl": "http://localhost:3000/policy", + "username": "Tonyj", "password": "appirio123", - "email": "sathya.jayabal@gmail.com", + "email": "topcoderconnect@gmail.com", "challangesLinks": { - "rssFeedUrl": "http://feeds.topcoder-dev.com/challenges/feed", - "aboutUrl": "http://local.topcoder.com:3000/about-the-2018-topcoder-open/", - "contactUrl": "http://local.topcoder.com:3000/thrive/tracks?track=Topcoder&tax=Help%20Articles/hc/en-us/articles/219069687-Contact-Support", - "privacyUrl": "http://local.topcoder.com:3000/privacy-policy/", - "helpUrl": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", - "termsUrl": "http://local.topcoder.com:3000/community/how-it-works/terms/" + "rssFeedUrl": "http://feeds.topcoder.com/challenges/feed", + "aboutUrl": "http://localhost:3000/about-the-2018-topcoder-open/", + "contactUrl": "http://localhost:3000/thrive/tracks?track=Topcoder&tax=Help%20Articles/hc/en-us/articles/219069687-Contact-Support", + "privacyUrl": "http://localhost:3000/privacy-policy/", + "helpUrl": "http://localhost:3000/thrive/tracks?track=Topcoder&tax=Help%20Articles", + "termsUrl": "http://localhost:3000/community/how-it-works/terms/" }, "challengeDetail": { - "url": "http://local.topcoder.com:3000/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27", + "url": "http://localhost:3000/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023", "termsLinkText": "Standard Terms for Topcoder Competitions v2.2", - "challengeName": "Test Automation challenge", - "challengeTag": "Challenge", - "termUrl": "http://local.topcoder.com:3000/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95", - "forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0", - "submissionUrl": "http://local.topcoder.com:3000/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27/submit", - "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610" + "challengeName": "[Do not register] Sample challenge for Automation.", + "challengeTag": "QA", + "termUrl": "http://localhost:3000/challenges/terms/detail/9ef9dec4-dddb-48c9-9cce-659db68bc5ac", + "forumUrl": "https://apps.topcoder.com/forums/?module=Category&categoryID=82117", + "submissionUrl": "http://localhost:3000/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023/submit", + "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133" }, "myDashboard": { - "url": "http://local.topcoder.com:3000/my-dashboard", + "url": "http://localhost:3000/my-dashboard", "challenge": { - "name": "Test_challenge_Automation", - "currentPhase": "Submission", + "name": "Test challenge- Spec Preview", + "currentPhase": "Checkpoint Review", "linkToSubmit": "", "userRole": "" }, "community": { "name": "Blockchain Community", - "learnMoreUrl": "https://blockchain.topcoder-dev.com/" + "learnMoreUrl": "https://blockchain.topcoder.com/" } }, "memberProfile": { - "url": "http://local.topcoder.com:3000/members", + "url": "http://localhost:3000/members", "profileInfo": { "handle": "iamtong", "numberOfCollapsedSkills": 10, @@ -130,7 +125,7 @@ "memberSince": "MEMBER SINCE MAY, 2009", "tracks": ["COPILOT", "DEVELOP", "DESIGN"], "quote": "I'm a designer focusing on designing mobile/ web applications and user experience.", - "forumLink": "https://apps.topcoder-dev.com/forums/?module=History&userID=22781893" + "forumLink": "https://apps.topcoder.com/forums/?module=History&userID=22781893" }, "memberHaveWebSectionInfo": { "handle": "oton", @@ -143,7 +138,7 @@ "name": "COPILOT", "info": "100%", "infoTitle": "FULFILLMENT", - "link": "http://local.topcoder.com:3000/members/iamtong/details/?track=COPILOT&subTrack=COPILOT" + "link": "http://localhost:3000/members/iamtong/details/?track=COPILOT&subTrack=COPILOT" } }, "designProfile": { @@ -152,20 +147,20 @@ "numberOfSubtracks": 11, "winInfo": { "name": "WEB DESIGNS", - "info": "189", + "info": "258", "infoTitle": "WINS", - "link": "http://local.topcoder.com:3000/members/iamtong/details/?track=DESIGN&subTrack=WEB_DESIGNS" + "link": "http://localhost:3000/members/iamtong/details/?track=DESIGN&subTrack=WEB_DESIGNS" } }, "developmentProfile": { - "handle": "winterflame", + "handle": "iamtong", "trackName": "DEVELOP", - "numberOfSubtracks": 14, + "numberOfSubtracks": 8, "winInfo": { "name": "FIRST2FINISH", - "info": "2", + "info": "56", "infoTitle": "WINS", - "link": "http://local.topcoder.com:3000/members/winterflame/details/?track=DEVELOP&subTrack=FIRST_2_FINISH" + "link": "http://localhost:3000/members/iamtong/details/?track=DEVELOP&subTrack=FIRST_2_FINISH" } }, "dataScienceProfile": { @@ -176,7 +171,7 @@ "name": "MARATHON MATCH", "info": "999", "infoTitle": "RATING", - "link": "http://local.topcoder.com:3000/members/FireIce/details/?track=DATA_SCIENCE&subTrack=MARATHON_MATCH" + "link": "http://localhost:3000/members/FireIce/details/?track=DATA_SCIENCE&subTrack=MARATHON_MATCH" } } } diff --git a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.helper.ts b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.helper.ts index fcb08c0d46..aeefc81a71 100644 --- a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.helper.ts +++ b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.helper.ts @@ -3,6 +3,7 @@ import { ConfigHelper } from '../../../../utils/config-helper'; import { CommonHelper } from '../common-page/common.helper'; import { HeaderPage } from '../header/header.po'; import { BrowserHelper, ElementHelper } from 'topcoder-testing-lib'; +import { logger } from '../../../../logger/logger'; export class ChallengeListingPageHelper { /** @@ -136,6 +137,17 @@ export class ChallengeListingPageHelper { expect(isDisplayed).toEqual(true); } + public static async scrollDownToPage(totalChallenge = 10) { + const scrollCount = totalChallenge / 10 + 1; + for (var i = 0; i < scrollCount; i++) { + await BrowserHelper.executeScript('arguments[0].scrollIntoView();', CommonHelper.findElementByText( + 'a', + 'Policies' + )); + await BrowserHelper.sleep(1500); + } + } + /** * Wait for fetching new challenge list */ @@ -214,6 +226,7 @@ export class ChallengeListingPageHelper { expectedChallengesLength: number, filters: string | any[] ) { + await this.scrollDownToPage(expectedChallengesLength); const challenges = await ChallengeListingPageObject.challengeLinks; let totalChallenges = 0; expect(challenges.length).toEqual(expectedChallengesLength); @@ -256,9 +269,17 @@ export class ChallengeListingPageHelper { false ); const allOptions = await CommonHelper.selectAllOptionsElement; - await allOptions[index].click(); - // need to sleep to wait for ajax calls to be completed to filter using the above type - await BrowserHelper.sleep(5000); + const selectedOption = allOptions[index]; + logger.info('se ' + allOptions.length); + if (selectedOption) { + await allOptions[index].click(); + // need to sleep to wait for ajax calls to be completed to filter using the above type + await BrowserHelper.sleep(5000); + return true; + } else { + await ChallengeListingPageObject.subCommunityDropdown.click(); + return false; + } } static async verifyFilterBySubCommunity() { @@ -272,9 +293,11 @@ export class ChallengeListingPageHelper { expect(filtersVisibility).toBe(true); await this.selectSubCommunity(1); - let challenges = await ChallengeListingPageObject.challengeLinks; let count = await this.getOpenForRegistrationChallengesCount(); + await this.scrollDownToPage(count); + let challenges = await ChallengeListingPageObject.challengeLinks; + expect(challenges.length).toEqual(count); await this.selectSubCommunity(0); @@ -392,7 +415,7 @@ export class ChallengeListingPageHelper { await this.selectKeyword('Java'); await this.selectType('Challenge'); await this.verifyChallengesMatchingKeyword(['Java']); - const count = await this.getAllChallengesCount(); + const count = await this.getOpenForRegistrationChallengesCount(); await this.verifyChallengesMatchingType(count, [{ name: 'CH' }]); } @@ -423,10 +446,10 @@ export class ChallengeListingPageHelper { * verify filter by multiple types */ static async verifyFilterByMultipleTypes() { - await this.selectType('First2Finish'); await this.selectType('Challenge'); + await this.selectType('First2Finish'); - await this.viewMoreChallenges(); + // await this.viewMoreChallenges(); const count = await this.getOpenForRegistrationChallengesCount(); @@ -452,7 +475,7 @@ export class ChallengeListingPageHelper { static async verifyRemovalOfType() { const removeTags = await ChallengeListingPageObject.allRemoveTags(); await removeTags[1].click(); - const count = await this.getAllChallengesCount(); + const count = await this.getOpenForRegistrationChallengesCount(); await this.verifyChallengesMatchingType(count, [{ name: 'Cd' }]); } @@ -595,6 +618,7 @@ export class ChallengeListingPageHelper { false ); + await this.scrollDownToPage(); await this.waitForLoadingNewChallengeList(); let challenges = await ChallengeListingPageObject.openForRegistrationChallenges; @@ -885,9 +909,8 @@ export class ChallengeListingPageHelper { * @param enabled check if enable */ static async verifyClearFilterState(enabled: boolean) { - const cursorPointer = await CommonHelper.findElementByText( - 'button', - 'Clear filters' + const cursorPointer = await ElementHelper.getElementByClassName( + '_22SITo' ).getCssValue('cursor'); expect(cursorPointer !== 'not-allowed').toEqual(enabled); } diff --git a/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts b/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts index 456d04aaf0..369ffc0a6c 100644 --- a/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts +++ b/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts @@ -1,4 +1,4 @@ -import { BrowserHelper } from 'topcoder-testing-lib'; +import { BrowserHelper, ElementHelper } from 'topcoder-testing-lib'; import { ChallengeListingPageHelper } from '../page-objects/pages/topcoder/challenge-listing/challenge-listing.helper'; import { LoginPageHelper } from '../page-objects/pages/topcoder/login/login.helper'; import { ConfigHelper } from '../utils/config-helper'; @@ -92,16 +92,20 @@ describe('Topcoder Challenge Listing Page Tests: ', () => { await ChallengeListingPageHelper.openFiltersPanel(); await ChallengeListingPageHelper.selectKeyword('Java'); await ChallengeListingPageHelper.selectType('Challenge'); - await ChallengeListingPageHelper.selectSubCommunity(1); - await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(3); + const subComunityClicked = await ChallengeListingPageHelper.selectSubCommunity(1); + let expectedFilterNumber = 3; + if (!subComunityClicked) expectedFilterNumber = 2; + await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(expectedFilterNumber); }); it('[TC_016] should verify whether the clear filter button clears all the filters selected and all the challenges are displayed', async () => { await ChallengeListingPageHelper.openFiltersPanel(); await ChallengeListingPageHelper.selectKeyword('Java'); await ChallengeListingPageHelper.selectType('Challenge'); - await ChallengeListingPageHelper.selectSubCommunity(1); - await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(3); + const subComunityClicked = await ChallengeListingPageHelper.selectSubCommunity(1); + let expectedFilterNumber = 3; + if (!subComunityClicked) expectedFilterNumber = 2; + await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(expectedFilterNumber); await ChallengeListingPageHelper.clearFilters(); await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(0); }); diff --git a/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx b/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx index 07d9f4d206..76603379c4 100644 --- a/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx +++ b/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx @@ -432,8 +432,7 @@ export default function FiltersPanel({ events: [], endDateStart: null, startDateEnd: null, - status: 'All', - reviewOpportunityType: undefined, + status: 'Active', }); selectCommunity(defaultCommunityId); setSearchText(''); diff --git a/src/shared/utils/challenge-listing/buckets.js b/src/shared/utils/challenge-listing/buckets.js index 207fc92118..8cb95db082 100644 --- a/src/shared/utils/challenge-listing/buckets.js +++ b/src/shared/utils/challenge-listing/buckets.js @@ -194,22 +194,19 @@ export function sortChangedBucket(sorts, prevSorts) { } export function isFilterEmpty(filter) { - return _.isEqual(filter, { - tracks: { - Dev: true, - Des: true, - DS: true, - QA: true, - }, - name: '', - tags: [], - types: [], - groups: [], - events: [], - startDateStart: null, - endDateEnd: null, - status: 'Active', - }); + return _.isEqual(filter.tracks, { + Dev: true, + Des: true, + DS: true, + QA: true, + }) + && !filter.name.length + && !filter.tags.length + && !filter.types.length + && !filter.groups.length + && !filter.events.length + && !filter.endDateStart + && !filter.startDateEnd; } export default undefined;