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 a6579be
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 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,25 @@ 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 All @@ -36,6 +57,9 @@ describe(["special"], "Features", function () {
cy.contains("span", "azure-appservice", { timeout: 120 * SEC }).should("not.exist");
});




after("Teardown", function () {
if (!isMTROnOCP()) return;
login();
Expand Down

0 comments on commit a6579be

Please sign in to comment.