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
3 changes: 2 additions & 1 deletion connect-automation/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"accountAndSecurityUrl": "https://connect.topcoder-dev.com/settings/account",
"notificationsUrl": "https://connect.topcoder-dev.com/notifications",
"allProjectsUrl": "https://connect.topcoder-dev.com/projects",
"givenProjectUrl": "https://connect.topcoder-dev.com/projects/17236"
"givenProjectUrl": "https://connect.topcoder-dev.com/projects/18013",
"expiredProjectUrl": "https://connect.topcoder-dev.com/projects/17236"
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ProjectsHelper {
* @param searchProject object for search
*/
public static async verifyProjectSearch(searchProject: ISearchProject) {
await BrowserHelper.sleep(3000);
await BrowserHelper.sleep(8000);
const allProjectsBeforeSearch = await this.projectsPageObject.projectTitles();
const beforeSearchLength = allProjectsBeforeSearch.length;
const firstProjectBeforeSearch = await allProjectsBeforeSearch[0].getText();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export class ProjectSettingsPageHelper {

/**
* Open Home page
* @param expired
*/
public static async open() {
await ProjectSettingsPageObject.open();
public static async open(expired = false) {
await ProjectSettingsPageObject.open(expired);
await CommonHelper.waitForPageDisplayed();
await BrowserHelper.sleep(10000);
await CommonHelper.waitForElementToGetDisplayed(this.projectSettingsPageObject.getProjectMenu('Project Settings'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import { ConfigHelper } from '../../utils/config-helper';
export class ProjectSettingsPageObject {
/**
* Open the Given Project URL
* @param expired
*/
public static async open() {
await BrowserHelper.open(ConfigHelper.getGivenProjectUrl());
public static async open(expired = false) {
const url = expired ? ConfigHelper.getExpiredProjectUrl() : ConfigHelper.getGivenProjectUrl()
await BrowserHelper.open(url);
logger.info('User navigated to Project Page');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ describe('Connect App - Project Settings Tests:', () => {

beforeEach(async () => {
ProjectSettingsPageHelper.initialize();
// Step Sequence #1: Go to the given app URL
await ProjectSettingsPageHelper.open();
});

it('[TC_001] Should verify user can update Project Details ( eg NDA, Default Group)', async () => {
// Step Sequence #1: Go to the given app URL
await ProjectSettingsPageHelper.open();
// Resetting Existing Project Settings
await ProjectSettingsPageHelper.resetSettings();

Expand All @@ -35,18 +35,22 @@ describe('Connect App - Project Settings Tests:', () => {
});

it('[TC_002] Should verify system showing Billing Account expiry information.', async () => {
await ProjectSettingsPageHelper.open(true);
await ProjectSettingsPageHelper.verifyAccountExpiryInformation();
});

it('[TC_003] Should verify user can Add/Edit/Delete/Download Files', async () => {
await ProjectSettingsPageHelper.open();
await ProjectSettingsPageHelper.verifyUserCanAddEditDeleteDownloadFiles(testData.projectSettings);
});

it('[TC_004] Should verify user can Add/Edit/Delete/Download Links', async () => {
await ProjectSettingsPageHelper.open();
await ProjectSettingsPageHelper.verifyUserCanAddEditDeleteDownloadLinks(testData.projectSettings);
});

it('[TC_005] Should verify user can Add Message with Files Attachment', async () => {
await ProjectSettingsPageHelper.open();
await ProjectSettingsPageHelper.verifyUserCanAddMessageWithFileAttachment(testData.projectSettings);
});
});
7 changes: 7 additions & 0 deletions connect-automation/utils/config-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,11 @@ export const ConfigHelper = {
getGivenProjectUrl(): string {
return this.getConfig().givenProjectUrl;
},

/**
* Get Expired Project URL
*/
getExpiredProjectUrl(): string {
return this.getConfig().expiredProjectUrl;
},
};