Skip to content

Commit 4e805c8

Browse files
committed
fix challenge-listing dev e2e tests
1 parent 4f401ec commit 4e805c8

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

automated-smoke-test/config/automation-config-dev.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@
9797
"termsUrl": "https://community-app.topcoder-dev.com/community/how-it-works/terms/"
9898
},
9999
"challengeDetail": {
100-
"url": "https://community-app.topcoder-dev.com/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27",
100+
"url": "https://community-app.topcoder-dev.com/challenges/e0db3e96-522e-4b56-b954-a514acfd536e",
101101
"termsLinkText": "Standard Terms for Topcoder Competitions v2.2",
102-
"challengeName": "Test Automation challenge",
103-
"challengeTag": "Challenge",
102+
"challengeName": "NDA Test Challenge",
103+
"challengeTag": "Java",
104104
"termUrl": "https://community-app.topcoder-dev.com/challenges/terms/detail/b11da5cd-713f-478d-90f4-f679ef53ee95",
105105
"forumUrl": "https://apps.topcoder-dev.com/forums/?module=Category&categoryID=0",
106-
"submissionUrl": "https://community-app.topcoder-dev.com/challenges/ee951f3e-8c3d-41d7-b232-aa8774ff7f27/submit",
107-
"scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30001610"
106+
"submissionUrl": "https://community-app.topcoder-dev.com/challenges/e0db3e96-522e-4b56-b954-a514acfd536e/submit",
107+
"scorecardUrl": "https://software.topcoder-dev.com/review/actions/ViewScorecard?scid=30056744"
108108
},
109109
"myDashboard": {
110110
"url": "https://community-app.topcoder-dev.com/my-dashboard",

automated-smoke-test/page-objects/pages/topcoder/challenge-listing/challenge-listing.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class ChallengeListingPageHelper {
137137
expect(isDisplayed).toEqual(true);
138138
}
139139

140-
public static async scrollDownToPage(totalChallenge = 10) {
140+
public static async scrollDownToPage(totalChallenge = 100) {
141141
const scrollCount = totalChallenge / 10 + 1;
142142
for (var i = 0; i < scrollCount; i++) {
143143
await BrowserHelper.executeScript('arguments[0].scrollIntoView();', CommonHelper.findElementByText(

automated-smoke-test/page-objects/pages/topcoder/login/login.helper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { CommonHelper } from '../common-page/common.helper';
44
import { LoginPageConstants } from './login.constants';
55
import { LoginPage } from './login.po';
66
import { SplashPage } from '../splash/splash.po';
7+
import { BrowserHelper } from 'topcoder-testing-lib';
78

89
export class LoginPageHelper {
910
/**
@@ -30,15 +31,15 @@ export class LoginPageHelper {
3031
public static async login(username: string, password: string) {
3132
await this.loginPageObject.waitForLoginForm();
3233
await this.loginPageObject.fillLoginForm(username, password);
33-
await this.loginPageObject.waitForHomePage();
34+
await BrowserHelper.sleep(5000);
3435
}
3536

3637
/**
3738
* Logout
3839
*/
3940
public static async logout() {
4041
await this.loginPageObject.logout();
41-
await this.loginPageObject.waitForHomePage();
42+
await BrowserHelper.sleep(5000);
4243
}
4344

4445
/**

0 commit comments

Comments
 (0)