Skip to content

Commit

Permalink
adapt source analysis test
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Brugarolas <[email protected]>
  • Loading branch information
abrugaro committed Aug 14, 2023
1 parent b05ec4b commit 5205819
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.

import {
login,
deleteAllBusinessServices,
getRandomApplicationData,
getRandomAnalysisData,
writeMavenSettingsFile,
Expand All @@ -36,12 +35,10 @@ import {
import * as data from "../../../../../utils/data_utils";
import { CredentialsSourceControlUsername } from "../../../../models/administration/credentials/credentialsSourceControlUsername";
import { CredentialsSourceControlKey } from "../../../../models/administration/credentials/credentialsSourceControlKey";
import { MavenConfiguration } from "../../../../models/administration/repositories/maven";
import { infoAlertMessage } from "../../../../views/common.view";
let source_credential;
let maven_credential;
const mavenConfiguration = new MavenConfiguration();
var applicationsList: Array<Analysis> = [];
let applicationsList: Array<Analysis> = [];

describe(["@tier1"], "Source Analysis", () => {
before("Login", function () {
Expand Down Expand Up @@ -282,7 +279,6 @@ describe(["@tier1"], "Source Analysis", () => {

after("Perform test data clean up", function () {
deleteByList(applicationsList);
deleteAllBusinessServices();
writeMavenSettingsFile(data.getRandomWord(5), data.getRandomWord(5));
});
});
6 changes: 3 additions & 3 deletions cypress/e2e/views/applicationinventory.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export const createEntitiesCheckbox = "#create-entities-checkbox";

//Fields related to application details page
export enum appDetailsView {
applicationTag = "span.pf-c-label__content",
applicationTag = "span.pf-v5-c-label__content",
closeDetailsPage = "button[aria-label='Close drawer panel']",
tagFilter = "#source-filter-value-select",
tagCategory = "div[class='pf-c-content'] > h4",
filterSourceMenu = "div.pf-c-select__menu",
tagCategory = "div[class='pf-v5-c-content'] > h4",
filterSourceMenu = "div.pf-v5-c-select__menu",
tagCategoryFilter = "#tagCategory-filter-value-select",
}
10 changes: 4 additions & 6 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@
"storyPoints": 1,
"techTags": [
["HTTP", "Servlet"],
["MVC", "Spring MVC"],
["Observability", "Spring Boot Actuator"],
["Other", "Properties"],
["Persistence", "JPA entities"],
["Persistence", "Spring Data JPA"],
["Web", "Spring Web"]
["Processing", "Java EE Batch"],
["Java EE", "Java EE Batch"],
["Execute", "Java EE Batch"],
["Connect", "Servlet"]
]
},

Expand Down

0 comments on commit 5205819

Please sign in to comment.