Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ workflows:
branches:
only:
- develop
- topgear-login-redirect
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
Expand Down Expand Up @@ -370,7 +369,6 @@ workflows:
branches:
only:
- develop
- topgear-login-redirect
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ export class ChallengeListingPageHelper {
await BrowserHelper.sleep(5000);

const firstChallenge = ChallengeListingPageObject.firstChallengeLink;
let firstChallengeName = '';
if (await firstChallenge.isPresent()) {
firstChallengeName = await firstChallenge.getText();

const isPresent = await firstChallenge.isPresent();
expect(isPresent).toEqual(true);

if (isPresent) {
const firstChallengeName = await firstChallenge.getText();
expect(firstChallengeName).toEqual(searchString);
}
}
Expand Down Expand Up @@ -218,6 +221,35 @@ export class ChallengeListingPageHelper {
let filtersVisibility = await CommonHelper.isDisplayed(ChallengeListingPageObject.subCommunityLabel);
expect(filtersVisibility).toBe(true);

// Filter by Development Challenges
let el = await ChallengeListingPageObject.designSwitch();
await el.click();
await CommonHelper.waitUntilPresenceOf(
() => ChallengeListingPageObject.designSwitchTurnedOff,
'wait for design switch turn off',
false
);

el = await ChallengeListingPageObject.dataScienceSwitch();
await el.click();
await CommonHelper.waitUntilPresenceOf(
() => ChallengeListingPageObject.dataScienceSwitchTurnedOff,
'wait for data science switch turn off',
false
);

el = await ChallengeListingPageObject.qaSwitch();
await el.click();
await CommonHelper.waitUntilPresenceOf(
() => ChallengeListingPageObject.qaSwitchTurnedOff,
'wait for qa switch turn off',
false
);

// Filter by Challenge type
await ChallengeListingPageObject.first2FinishCheckbox.click();
await ChallengeListingPageObject.taskCheckbox.click();

await ChallengeListingPageObject.challengeSearchBox.sendKeys('ReactJS');
await BrowserHelper.sleep(5000);
await this.verifyChallengesMatchingKeyword(['ReactJS']);
Expand Down Expand Up @@ -505,6 +537,7 @@ export class ChallengeListingPageHelper {
// const tagText = ConfigHelper.getChallengeDetail().challengeTag;
const tagText = 'EdgeNet';
await this.waitForSubCommunity();

await ChallengeListingPageObject.challengeSearchBox.sendKeys(tagText);
await BrowserHelper.sleep(2000);

Expand All @@ -514,6 +547,36 @@ export class ChallengeListingPageHelper {
false
);
await ChallengeListingPageObject.getChallengeTag(tagText).click();

// Filter by Development Challenges
let el = await ChallengeListingPageObject.designSwitch();
await el.click();
await CommonHelper.waitUntilPresenceOf(
() => ChallengeListingPageObject.designSwitchTurnedOff,
'wait for design switch turn off',
false
);

el = await ChallengeListingPageObject.dataScienceSwitch();
await el.click();
await CommonHelper.waitUntilPresenceOf(
() => ChallengeListingPageObject.dataScienceSwitchTurnedOff,
'wait for data science switch turn off',
false
);

el = await ChallengeListingPageObject.qaSwitch();
await el.click();
await CommonHelper.waitUntilPresenceOf(
() => ChallengeListingPageObject.qaSwitchTurnedOff,
'wait for qa switch turn off',
false
);

// Filter by Challenge type
await ChallengeListingPageObject.first2FinishCheckbox.click();
await ChallengeListingPageObject.taskCheckbox.click();

// waiting for re-render to happen
await BrowserHelper.sleep(15000);

Expand Down