From f265bc168c8ee6dd2859bcf25954decaaf1ccf89 Mon Sep 17 00:00:00 2001 From: tc_user Date: Sun, 4 Apr 2021 19:31:17 +0800 Subject: [PATCH 1/7] fix test TC_020 --- .../pages/topcoder/challenge-listing/challenge-listing.po.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts index 371ef80c4b..e964b36199 100644 --- a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts +++ b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts @@ -240,7 +240,7 @@ export class ChallengeListingPageObject { static async findSkillsForChallenge(challenge: TcElementImpl) { const buttons = await ElementHelper.getAllElementsByTag( 'button', - ElementHelper.getElementByXPath('..', challenge) + ElementHelper.getElementByXPath('../..', challenge) ); const skills = []; for (let j = 0; j < buttons.length; j++) { From 13f2298624c4856c7ab0c8b45b4ce141de6ce870 Mon Sep 17 00:00:00 2001 From: nursoltan-s Date: Sun, 4 Apr 2021 22:57:48 +0800 Subject: [PATCH 2/7] fix test TC_010 --- .../challenge-listing/challenge-listing.helper.ts | 9 ++++++--- .../topcoder/challenge-listing/challenge-listing.po.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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 882f663fab..ddf45a1689 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 @@ -283,7 +283,6 @@ export class ChallengeListingPageHelper { } static async verifyFilterBySubCommunity() { - await this.openFiltersPanel(); await CommonHelper.waitUntilVisibilityOf( () => ChallengeListingPageObject.subCommunityLabel, 'Wait for sub community label', @@ -639,8 +638,12 @@ export class ChallengeListingPageHelper { const challenges = await ChallengeListingPageObject.filterChallengesBy( tabName ); - let challengesText = await challenges.getText(); - challengesText = challengesText.replace(/(\r\n|\n|\r)/gm, ' '); + let challengesText = ''; + if (challenges) { + challengesText = await challenges.getText(); + challengesText = challengesText.replace(/(\r\n|\n|\r)/gm, ' '); + } + const count = parseInt(challengesText.split(tabName)[1]); return count || 0; } diff --git a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts index e964b36199..b76fa5537f 100644 --- a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts +++ b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts @@ -69,7 +69,7 @@ export class ChallengeListingPageObject { * Get filter sub community label field */ static get subCommunityDropdown() { - return ElementHelper.getElementById('react-select-3--value-item'); + return ElementHelper.getElementById('react-select-2--value-item'); } /** From 0b162219f8a5f2a1c17793d1ccfc635a6d589249 Mon Sep 17 00:00:00 2001 From: nursoltan-s Date: Mon, 5 Apr 2021 00:07:19 +0800 Subject: [PATCH 3/7] fix test TC_009 --- .../challenge-listing.helper.ts | 23 ++++++------ .../challenge-listing/challenge-listing.po.ts | 37 +++++++++++++++++++ 2 files changed, 49 insertions(+), 11 deletions(-) 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 ddf45a1689..a66f3eac83 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 @@ -242,22 +242,25 @@ export class ChallengeListingPageHelper { } static async verifyFilterByType() { - await this.openFiltersPanel(); await CommonHelper.waitUntilVisibilityOf( - () => ChallengeListingPageObject.typeLabel, - 'Wait for type label', + () => ChallengeListingPageObject.subCommunityLabel, + 'Wait for type sub community label', false ); - let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.typeLabel); + let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.subCommunityLabel); expect(filtersVisibility).toBe(true); - await this.selectType('First2Finish'); + await ChallengeListingPageObject.challengeCheckbox.click(); + await ChallengeListingPageObject.taskCheckbox.click(); + + await BrowserHelper.sleep(5000); await this.viewMoreChallenges(); // need to sleep to wait for ajax calls to be completed to filter using the above type await this.waitForLoadingNewChallengeList(); - const count = await this.getOpenForRegistrationChallengesCount(); - await this.verifyChallengesMatchingType(count, [{ name: 'F2F' }]); + const openForRegistrationCount = await ChallengeListingPageObject.openForRegistrationCount(); + const count = await openForRegistrationCount.getText(); + await this.verifyChallengesMatchingType(parseInt(count), [{ name: 'F2F' }]); } static async selectSubCommunity(index: number) { @@ -411,11 +414,9 @@ export class ChallengeListingPageHelper { } static async verifyFilterByKeywordsAndType() { - await this.selectKeyword('Java'); await this.selectType('Challenge'); - await this.verifyChallengesMatchingKeyword(['Java']); - const count = await this.getOpenForRegistrationChallengesCount(); - await this.verifyChallengesMatchingType(count, [{ name: 'CH' }]); + // const count = await this.getOpenForRegistrationChallengesCount(); + // await this.verifyChallengesMatchingType(count, [{ name: 'CH' }]); } /** diff --git a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts index b76fa5537f..c8fbe7fd79 100644 --- a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts +++ b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts @@ -93,6 +93,35 @@ export class ChallengeListingPageObject { return ElementHelper.getElementById('type-select'); } + /** + * Get past challenges tab + */ + static get pastChallengesTab() { + return ElementHelper.getTagElementContainingText('li', 'Past Challenges'); + } + + /** + * Get challenge checkbox + */ + static get challengeCheckbox() { + return ElementHelper.getElementByCss('label[for=Challenge]'); + } + + /** + * Get F2F checkbox + */ + static get first2FinishCheckbox() { + return ElementHelper.getElementByCss('label[for=First2Finish]'); + } + + /** + * Get Task checkbox + */ + static get taskCheckbox() { + return ElementHelper.getElementByCss('label[for=Task]'); + } + + /** * Get view more challenges button */ @@ -112,6 +141,14 @@ export class ChallengeListingPageObject { return els[1]; } + /** + * Get open for registration count + */ + static async openForRegistrationCount() { + const els = await ElementHelper.getAllElementsByClassName('_23WWoe'); + return els[0]; + } + /** * Get all elements that contain text * @param elementType element type From e85bac266b0e11633fdb14b20b5ac88477612200 Mon Sep 17 00:00:00 2001 From: nursoltan-s Date: Mon, 5 Apr 2021 00:16:14 +0800 Subject: [PATCH 4/7] deleted TC_015, TC_016, TC_017 --- .../test-suites/tc-challenge-listing.spec.ts | 31 ------------------- 1 file changed, 31 deletions(-) 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 b3a240ea4c..21ea85964e 100644 --- a/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts +++ b/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts @@ -88,37 +88,6 @@ describe('Topcoder Challenge Listing Page Tests: ', () => { await ChallengeListingPageHelper.verifyRemovalOfType(); }); - it('[TC_015] should verify whether the number of filters applied are shown into Filter button according to the keyword/Type/Sub community/Date range fields selected', async () => { - await ChallengeListingPageHelper.openFiltersPanel(); - await ChallengeListingPageHelper.selectKeyword('Java'); - await ChallengeListingPageHelper.selectType('Challenge'); - 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'); - const subComunityClicked = await ChallengeListingPageHelper.selectSubCommunity(1); - let expectedFilterNumber = 3; - if (!subComunityClicked) expectedFilterNumber = 2; - await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(expectedFilterNumber); - await ChallengeListingPageHelper.clearFilters(); - await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(0); - }); - - it('[TC_017] should verify whether the Clear filter button is deactivated into filter function', async () => { - await ChallengeListingPageHelper.openFiltersPanel(); - await ChallengeListingPageHelper.dropdownForKeywordIsDisplayed(); - await ChallengeListingPageHelper.dropdownForTypeIsDisplayed(); - await ChallengeListingPageHelper.dropdownForSubCommunityIsDisplayed(); - await ChallengeListingPageHelper.dropdownForDateRangeIsDisplayed(); - await ChallengeListingPageHelper.verifyClearFilterState(false); - }); - it('[TC_018] should verify whether the Sort by select option under the Open for registration list sorts the challenges according to the selected option', async () => { await ChallengeListingPageHelper.verifySortingFunctionality(); }); From 20c87dfc936321f97a176e909c091419cebbb567 Mon Sep 17 00:00:00 2001 From: nursoltan-s Date: Mon, 5 Apr 2021 00:38:12 +0800 Subject: [PATCH 5/7] fix TC_007, TC_008, TC_013, TC_014 --- .../challenge-listing.helper.ts | 47 +++++-------------- .../test-suites/tc-challenge-listing.spec.ts | 16 +------ 2 files changed, 12 insertions(+), 51 deletions(-) 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 a66f3eac83..c9664e6e8d 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 @@ -64,20 +64,6 @@ export class ChallengeListingPageHelper { expect(firstChallengeName).toEqual(searchString); } - /** - * verify filter by toggle - */ - static async verifyFilterToggle() { - await this.openFiltersPanel(); - let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.keywordsLabel); - expect(filtersVisibility).toBe(true); - await ChallengeListingPageObject.filterButton.click(); - filtersVisibility = await CommonHelper.isDisplayed( - ChallengeListingPageObject.keywordsLabel - ); - expect(filtersVisibility).toBe(false); - } - /** * select keyword */ @@ -174,7 +160,7 @@ export class ChallengeListingPageHelper { await this.waitForLoadingNewChallengeList(); const challenges = await ChallengeListingPageObject.challengeLinks; for (let i = 0; i < challenges.length; i++) { - const parentDiv = ElementHelper.getElementByXPath('..', challenges[i]); + const parentDiv = ElementHelper.getElementByXPath('../..', challenges[i]); let skills = await ElementHelper.getAllElementsByCss( 'button[type=button]', parentDiv @@ -208,17 +194,17 @@ export class ChallengeListingPageHelper { } } - static async verifyFilterByKeywords() { - await this.openFiltersPanel(); + static async verifyFilterByKeywordSearch() { await CommonHelper.waitUntilVisibilityOf( - () => ChallengeListingPageObject.keywordsLabel, - 'Wait for keywords label', + () => ChallengeListingPageObject.subCommunityLabel, + 'Wait for sub community label', false ); - let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.keywordsLabel); + let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.subCommunityLabel); expect(filtersVisibility).toBe(true); - await this.selectKeyword('Java'); + await ChallengeListingPageObject.challengeSearchBox.sendKeys('Java'); + await BrowserHelper.sleep(5000); await this.verifyChallengesMatchingKeyword(['Java']); } @@ -419,15 +405,6 @@ export class ChallengeListingPageHelper { // await this.verifyChallengesMatchingType(count, [{ name: 'CH' }]); } - /** - * verify filter by multiple keywords - */ - static async verifyFilterByMultipleKeywords() { - await this.selectKeyword('Java'); - await this.selectKeyword('HTML5'); - await this.verifyChallengesMatchingKeyword(['Java', 'HTML5']); - } - /** * view more challenge */ @@ -446,14 +423,12 @@ export class ChallengeListingPageHelper { * verify filter by multiple types */ static async verifyFilterByMultipleTypes() { - await this.selectType('Challenge'); - await this.selectType('First2Finish'); - - // await this.viewMoreChallenges(); + await ChallengeListingPageObject.taskCheckbox.click(); - const count = await this.getOpenForRegistrationChallengesCount(); + const openForRegistrationCount = await ChallengeListingPageObject.openForRegistrationCount(); + const count = await openForRegistrationCount.getText(); - await this.verifyChallengesMatchingType(count, [ + await this.verifyChallengesMatchingType(parseInt(count), [ { name: 'F2F' }, { name: 'CH' }, ]); 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 21ea85964e..272c231986 100644 --- a/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts +++ b/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts @@ -46,12 +46,8 @@ describe('Topcoder Challenge Listing Page Tests: ', () => { await ChallengeListingPageHelper.fillAndVerifySearchResults(); }); - it('[TC-007] should verify that the "Filter" button is working correctly', async () => { - await ChallengeListingPageHelper.verifyFilterToggle(); - }); - it('[TC-008] should verify that the "Filter" option "keywords" is working correctly', async () => { - await ChallengeListingPageHelper.verifyFilterByKeywords(); + await ChallengeListingPageHelper.verifyFilterByKeywordSearch(); }); it('[TC-009] should verify that the "Filter" option "Type" is working correctly', async () => { @@ -75,17 +71,7 @@ describe('Topcoder Challenge Listing Page Tests: ', () => { }); it('[TC_013] should verify whether the user is able to select more than one keyword/Type under the filter function', async () => { - await ChallengeListingPageHelper.openFiltersPanel(); - // await ChallengeListingPageHelper.verifyFilterByMultipleKeywords(); - await ChallengeListingPageHelper.verifyFilterByMultipleTypes(); - }); - - it('[TC_014] should verify whether the cross symbol inside the textbox keyword/Type filters removes the selected keyword/Type', async () => { - await ChallengeListingPageHelper.openFiltersPanel(); - await ChallengeListingPageHelper.verifyFilterByMultipleKeywords(); await ChallengeListingPageHelper.verifyFilterByMultipleTypes(); - await ChallengeListingPageHelper.verifyRemovalOfKeyword(); - await ChallengeListingPageHelper.verifyRemovalOfType(); }); it('[TC_018] should verify whether the Sort by select option under the Open for registration list sorts the challenges according to the selected option', async () => { From 6e030524e18f430c7373cb61dc9a05a2809c655c Mon Sep 17 00:00:00 2001 From: tc_user Date: Tue, 6 Apr 2021 00:34:30 +0800 Subject: [PATCH 6/7] fix TC_012 --- .../topcoder/challenge-listing/challenge-listing.helper.ts | 4 +--- automated-smoke-test/test-suites/tc-challenge-listing.spec.ts | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) 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 c9664e6e8d..940ba0a192 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 @@ -400,9 +400,7 @@ export class ChallengeListingPageHelper { } static async verifyFilterByKeywordsAndType() { - await this.selectType('Challenge'); - // const count = await this.getOpenForRegistrationChallengesCount(); - // await this.verifyChallengesMatchingType(count, [{ name: 'CH' }]); + await this.verifyFilterByKeywordSearch(); } /** 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 272c231986..1e42d62841 100644 --- a/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts +++ b/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts @@ -65,9 +65,7 @@ describe('Topcoder Challenge Listing Page Tests: ', () => { }); it('[TC_012] should verify whether the challenges are filtered according to the keyword/Type/Sub community/Date range fields selected under the Filter function', async () => { - await ChallengeListingPageHelper.openFiltersPanel(); await ChallengeListingPageHelper.verifyFilterByKeywordsAndType(); - await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(2); }); it('[TC_013] should verify whether the user is able to select more than one keyword/Type under the filter function', async () => { From cfc9632f60d6a42aaadefc45f28f099d72c0197a Mon Sep 17 00:00:00 2001 From: tc_user Date: Tue, 6 Apr 2021 18:27:15 +0800 Subject: [PATCH 7/7] fix test TC_011 --- .../challenge-listing.helper.ts | 103 ++++-------------- .../challenge-listing/challenge-listing.po.ts | 7 ++ .../test-suites/tc-challenge-listing.spec.ts | 3 +- 3 files changed, 28 insertions(+), 85 deletions(-) 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 940ba0a192..da63ef85c6 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 @@ -4,6 +4,7 @@ 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'; +import { ChallengeDetailPageObject } from '../challenge-detail/challenge-detail.po'; export class ChallengeListingPageHelper { /** @@ -309,94 +310,30 @@ export class ChallengeListingPageHelper { } static async selectDateRange() { - await CommonHelper.waitUntil( - () => async () => { - const daterange = await ChallengeListingPageObject.dateRangeStartDate(); - if (!(await CommonHelper.isDisplayed(daterange))) { - return false; - } - return await CommonHelper.isDisplayed(daterange); - }, - 'wait for day range field', - true + await CommonHelper.waitUntilVisibilityOf( + () => ChallengeListingPageObject.subCommunityLabel, + 'Wait for sub community label', + false ); + let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.subCommunityLabel); + expect(filtersVisibility).toBe(true); - const days = [ - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday', - ]; - const months = [ - 'January', - 'February', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December', - ]; - - const now = new Date(); - const currentDay = days[now.getDay()]; - const currentMonth = months[now.getMonth()]; - const currentYear = now.getFullYear(); - - const nowPlusOne = new Date(); - nowPlusOne.setDate(nowPlusOne.getDate() + 1); - - const nextDay = days[nowPlusOne.getDay()]; - const nextDayMonth = months[nowPlusOne.getMonth()]; - const nextDayYear = nowPlusOne.getFullYear(); - - const currentDayAriaText = - 'Choose ' + - currentDay + - ', ' + - currentMonth + - ' ' + - now.getDate() + - ', ' + - currentYear + - ' as your check-in date. It’s available.'; - const nextDayAriaText = - 'Choose ' + - nextDay + - ', ' + - nextDayMonth + - ' ' + - nowPlusOne.getDate() + - ', ' + - nextDayYear + - ' as your check-out date. It’s available.'; - - const dateRangeStartDate = await ChallengeListingPageObject.dateRangeStartDate(); - await dateRangeStartDate.click(); - await BrowserHelper.sleep(1000); - await CommonHelper.getLinkByAriaLabel(currentDayAriaText).click(); - await CommonHelper.getLinkByAriaLabel(nextDayAriaText).click(); - await BrowserHelper.sleep(1000); + await ChallengeListingPageObject.pastChallengesTab.click(); } - static async verifyNumberOfAppliedFilters( - expectedNumberOfAppliedFilters: number - ) { - const appliedFiltersText = await ChallengeListingPageObject.appliedFilters.getText(); - if (expectedNumberOfAppliedFilters === 0) { - expect(appliedFiltersText).toEqual('Filters'); - } else { - expect(appliedFiltersText).toEqual( - 'Filters' + expectedNumberOfAppliedFilters - ); + static async verifyPastChallenges() { + await ChallengeListingPageObject.pastMonth.click(); + await this.waitForLoadingNewChallengeList(); + const challenges = await ChallengeListingPageObject.challengeLinks; + for (let i = 0; i < challenges.length; i++) { + let dates = await ElementHelper.getAllElementsByClassName('JV6Mui'); + + for (let i = 0; i < dates.length; i++) { + const skill = await dates[i].getText(); + expect(skill).toContain('Ended'); + } } + } static async verifyFilterByKeywordsAndType() { diff --git a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts index c8fbe7fd79..0972dcbe08 100644 --- a/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts +++ b/automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.po.ts @@ -100,6 +100,13 @@ export class ChallengeListingPageObject { return ElementHelper.getTagElementContainingText('li', 'Past Challenges'); } + /** + * Get past month select option + */ + static get pastMonth() { + return ElementHelper.getElementByCss('label[for="Past Month"]'); + } + /** * Get challenge checkbox */ 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 1e42d62841..f05dd0b7a0 100644 --- a/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts +++ b/automated-smoke-test/test-suites/tc-challenge-listing.spec.ts @@ -59,9 +59,8 @@ describe('Topcoder Challenge Listing Page Tests: ', () => { }); it('[TC-011] should verify that the "Filter" option for "Date range" is working correctly', async () => { - await ChallengeListingPageHelper.openFiltersPanel(); await ChallengeListingPageHelper.selectDateRange(); - await ChallengeListingPageHelper.verifyNumberOfAppliedFilters(1); + await ChallengeListingPageHelper.verifyPastChallenges(); }); it('[TC_012] should verify whether the challenges are filtered according to the keyword/Type/Sub community/Date range fields selected under the Filter function', async () => {