Skip to content

Commit

Permalink
[WIP] automate mtr 301 skip source code option
Browse files Browse the repository at this point in the history
  • Loading branch information
stillalearner committed Apr 28, 2023
1 parent c884750 commit 2ff5f50
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cypress/e2e/tests/features.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
} from "../../utils/utils";
import { Projects } from "../models/projects";
import { completed, projects, SEC } from "../types/constants";
import { AnalysisConfiguration } from "../models/analysis_configuration";
import { Analysis } from "../models/analysis";

describe(["special"], "Features", function () {
beforeEach("Login", function () {
Expand All @@ -22,6 +24,24 @@ describe(["special"], "Features", function () {
login();
});

it("MTR-301: Validate skip source code reports option", function () {
let projectData = getRandomApplicationData(this.projectData["JakartaEE9"]);
const project = new Projects(projectData);
project.create();

const extraOption = {
options: ["Skip source code reports"],
};

const analysisConf = new AnalysisConfiguration(projectData["name"]);
analysisConf.modifyAdvancedOptions(extraOption);

const analysis = new Analysis(projectData["name"]);
analysis.runAnalysis();
analysis.verifyLatestAnalysisStatus(completed);
analysis.openReport();
});

it("MTA-239: Validate azure-aks target not present in MTR", function () {
onlyOn(isMTROnOCP());
let projectData = getRandomApplicationData(this.projectData["JakartaEE9"]);
Expand Down

0 comments on commit 2ff5f50

Please sign in to comment.