From b82791ce68fe67c0999bc064ac04b41dd7530309 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 1 Jun 2021 09:37:16 -0300 Subject: [PATCH 1/4] Fix TC_006 and TC-020 - Search challenge --- automated-smoke-test/config/automation-config-beta.json | 3 ++- automated-smoke-test/config/automation-config-dev.json | 3 ++- automated-smoke-test/config/automation-config-local.json | 3 ++- automated-smoke-test/config/automation-config-prod.json | 3 ++- automated-smoke-test/config/automation-config-qa.json | 3 ++- automated-smoke-test/config/automation-config-staging.json | 3 ++- automated-smoke-test/config/automation-config-test.json | 3 ++- .../topcoder/challenge-listing/challenge-listing.helper.ts | 2 +- automated-smoke-test/utils/config-helper.ts | 1 + 9 files changed, 16 insertions(+), 8 deletions(-) diff --git a/automated-smoke-test/config/automation-config-beta.json b/automated-smoke-test/config/automation-config-beta.json index 9070e77ce5..9ba4ecc18b 100644 --- a/automated-smoke-test/config/automation-config-beta.json +++ b/automated-smoke-test/config/automation-config-beta.json @@ -103,7 +103,8 @@ "termUrl": "https://beta-community-app.topcoder.com/challenges/terms/detail/9ef9dec4-dddb-48c9-9cce-659db68bc5ac", "forumUrl": "https://apps.topcoder.com/forums/?module=Category&categoryID=82117", "submissionUrl": "https://beta-community-app.topcoder.com/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023/submit", - "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133" + "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "https://beta-community-app.topcoder.com/my-dashboard", diff --git a/automated-smoke-test/config/automation-config-dev.json b/automated-smoke-test/config/automation-config-dev.json index 69590cbc74..4df4b85ad3 100644 --- a/automated-smoke-test/config/automation-config-dev.json +++ b/automated-smoke-test/config/automation-config-dev.json @@ -104,7 +104,8 @@ "termUrl": "https://community-app.topcoder-dev.com/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95", "forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0", "submissionUrl": "https://community-app.topcoder-dev.com/challenges/e0db3e96-522e-4b56-b954-a514acfd536e/submit", - "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30056744" + "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30056744", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "https://community-app.topcoder-dev.com/my-dashboard", diff --git a/automated-smoke-test/config/automation-config-local.json b/automated-smoke-test/config/automation-config-local.json index 44c399f53c..79f61ba285 100644 --- a/automated-smoke-test/config/automation-config-local.json +++ b/automated-smoke-test/config/automation-config-local.json @@ -99,7 +99,8 @@ "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" + "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "http://localhost:3000/my-dashboard", diff --git a/automated-smoke-test/config/automation-config-prod.json b/automated-smoke-test/config/automation-config-prod.json index ee3bf8661c..f0fb447d58 100644 --- a/automated-smoke-test/config/automation-config-prod.json +++ b/automated-smoke-test/config/automation-config-prod.json @@ -99,7 +99,8 @@ "termUrl": "https://www.topcoder.com/challenges/terms/detail/9ef9dec4-dddb-48c9-9cce-659db68bc5ac", "forumUrl": "https://apps.topcoder.com/forums/?module=Category&categoryID=82117", "submissionUrl": "https://www.topcoder.com/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023/submit", - "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133" + "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "https://www.topcoder.com/my-dashboard", diff --git a/automated-smoke-test/config/automation-config-qa.json b/automated-smoke-test/config/automation-config-qa.json index 8d6f4d00c8..7c7b622d94 100644 --- a/automated-smoke-test/config/automation-config-qa.json +++ b/automated-smoke-test/config/automation-config-qa.json @@ -104,7 +104,8 @@ "termUrl": "https://qa-community-app.topcoder-dev.com/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95", "forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0", "submissionUrl": "https://qa-community-app.topcoder-dev.com/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27/submit", - "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610" + "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "https://qa-community-app.topcoder-dev.com/my-dashboard", diff --git a/automated-smoke-test/config/automation-config-staging.json b/automated-smoke-test/config/automation-config-staging.json index 348cbcc95a..693a4ba44e 100644 --- a/automated-smoke-test/config/automation-config-staging.json +++ b/automated-smoke-test/config/automation-config-staging.json @@ -104,7 +104,8 @@ "termUrl": "https://staging-community-app.topcoder.com/challenges/terms/detail/9ef9dec4-dddb-48c9-9cce-659db68bc5ac", "forumUrl": "https://apps.topcoder.com/forums/?module=Category&categoryID=82117", "submissionUrl": "https://staging-community-app.topcoder.com/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023/submit", - "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133" + "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "https://staging-community-app.topcoder.com/my-dashboard", diff --git a/automated-smoke-test/config/automation-config-test.json b/automated-smoke-test/config/automation-config-test.json index 874bfdabf6..7e981ed283 100644 --- a/automated-smoke-test/config/automation-config-test.json +++ b/automated-smoke-test/config/automation-config-test.json @@ -104,7 +104,8 @@ "termUrl": "https://test-community-app.topcoder-dev.com/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95", "forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0", "submissionUrl": "https://test-community-app.topcoder-dev.com/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27/submit", - "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610" + "scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610", + "searchText": "KGuTnJmJ" }, "myDashboard": { "url": "https://test-community-app.topcoder-dev.com/my-dashboard", 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 db65a43e84..cf7e5477bf 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 @@ -67,7 +67,7 @@ export class ChallengeListingPageHelper { false ); - const searchString = ConfigHelper.getChallengeDetail().challengeName; + const searchString = ConfigHelper.getChallengeDetail().searchText; await ChallengeListingPageObject.challengeSearchBox.sendKeys(searchString); await BrowserHelper.sleep(5000); diff --git a/automated-smoke-test/utils/config-helper.ts b/automated-smoke-test/utils/config-helper.ts index 1804ee0681..f4553ed49f 100644 --- a/automated-smoke-test/utils/config-helper.ts +++ b/automated-smoke-test/utils/config-helper.ts @@ -20,6 +20,7 @@ export interface ChallengeDetail { forumUrl: string; submissionUrl: string; scorecardUrl: string; + searchText: string, } export interface CommunityCardInfo { From 5d006d159e17dd02644dafa260c3af8b0529e655 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 3 Jun 2021 04:33:08 -0300 Subject: [PATCH 2/4] Fix logic --- .circleci/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 67e7cc1fcc..36d81072cf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -391,9 +391,7 @@ workflows: - develop Smoke Testing: - when: - and: - - << pipeline.parameters.run_smoketesting >> + when: << pipeline.parameters.run_smoketesting >> jobs: - Hold [Smoke-Testing]: type: approval From c65a8d024275886e4529c7b90349896d65d3820f Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 3 Jun 2021 05:15:40 -0300 Subject: [PATCH 3/4] Update verifyChallengesByChallengeTag to PostgreSQL --- .../topcoder/challenge-listing/challenge-listing.helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cf7e5477bf..29fa9578a3 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 @@ -503,7 +503,7 @@ export class ChallengeListingPageHelper { */ static async verifyChallengesByChallengeTag() { // const tagText = ConfigHelper.getChallengeDetail().challengeTag; - const tagText = 'ReactJS'; + const tagText = 'EdgeNet'; await this.waitForSubCommunity(); await ChallengeListingPageObject.challengeSearchBox.sendKeys(tagText); await BrowserHelper.sleep(2000); From a245f8b6fec1cfe70825ba282958a2b40ac9b7b0 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 3 Jun 2021 05:16:45 -0300 Subject: [PATCH 4/4] ci: Deploy ast-fix-search to Stag env --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 36d81072cf..9bf172b4b5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -369,7 +369,7 @@ workflows: branches: only: - develop - - fix-circleci-deployment + - ast-fix-search # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration