Skip to content

Commit

Permalink
Fixed analysis wizard after 'Run' button was changed to 'Next' (#722)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins authored Sep 26, 2023
1 parent 901989a commit 1da2261
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cypress/e2e/models/migration/applicationinventory/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
applicationInventory,
button,
migration,
next,
RepositoryType,
save,
SEC,
Expand All @@ -37,6 +36,7 @@ import {
doesExistSelector,
doesExistText,
inputText,
next,
performRowActionByIcon,
selectCheckBox,
selectFormItems,
Expand Down Expand Up @@ -255,7 +255,7 @@ export class Analysis extends Application {
if (this.openSourceLibraries) {
click("#oss");
}
cy.contains("button", "Next", { timeout: 200 }).click();
next();
}

protected tagsToExclude() {
Expand All @@ -279,17 +279,17 @@ export class Analysis extends Application {
this.selectSourceofAnalysis(this.source);
if (this.binary) this.uploadBinary();
this.isNextEnabled();
cy.contains(button, next).click();
next();
this.selectTarget(this.target);
cy.contains(button, next).click();
next();
this.scopeSelect();
if (this.customRule) {
this.uploadCustomRule();
}
if (this.customRuleRepository) {
this.fetchCustomRules();
}
cy.contains(button, next).click();
next();
if (this.excludeRuleTags) {
this.tagsToExclude();
}
Expand All @@ -300,9 +300,9 @@ export class Analysis extends Application {
this.disableAutomatedTagging();
}
if (!this.sources) {
cy.contains(button, next).click();
next();
}
cy.contains(button, "Run").click();
next();
}

public static analyzeAll(params: Analysis): void {
Expand Down
4 changes: 4 additions & 0 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1774,3 +1774,7 @@ export function selectAssessmentApplications(apps: string): void {
export function closeModalWindow(): void {
click(closeModal, false, true);
}

export function next(): void {
clickByText(button, "Next");
}

0 comments on commit 1da2261

Please sign in to comment.