Skip to content

Commit

Permalink
[RFR] Added Go analysis support and use in custom migration targets t…
Browse files Browse the repository at this point in the history
…ests (konveyor#1179)

* Adding Go analysis support

Signed-off-by: Maayan Hadasi <[email protected]>

* Remove redundant data

Signed-off-by: Maayan Hadasi <[email protected]>

* Fixing typo

Signed-off-by: Maayan Hadasi <[email protected]>

---------

Signed-off-by: Maayan Hadasi <[email protected]>
  • Loading branch information
mguetta1 authored Aug 1, 2024
1 parent ac90592 commit a74dbf8
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 230 deletions.
14 changes: 12 additions & 2 deletions cypress/e2e/models/migration/applicationinventory/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,20 @@ export class Analysis extends Application {
* Make sure our language is selected. It may already be selected if language-discovery
* added it, or if it was added manually.
*/
public static selectLanguage(language: Languages) {
public static selectLanguage(language: Languages, removePreSelected = false) {
cy.wait(2 * SEC);
click(actionSelectToggle);

if (removePreSelected) {
cy.get("#filter-by-language input[type=checkbox]").each(($checkbox) => {
cy.wrap($checkbox).then((checkbox) => {
if (checkbox.is(":checked")) {
cy.wrap($checkbox).uncheck();
}
});
});
}

// find the language's input checkbox and make sure it is checked
cy.get(`${actionSelectToggle} + .pf-v5-c-menu`)
.contains(language)
Expand All @@ -180,7 +190,7 @@ export class Analysis extends Application {
click(actionSelectToggle);
}

protected selectTarget(target: string[]): void {
public selectTarget(target: string[]): void {
for (let i = 0; i < target.length; i++) {
if (["OpenJDK 11", "OpenJDK 17", "OpenJDK 21"].includes(target[i])) {
click(openjdkToggleButton);
Expand Down
Loading

0 comments on commit a74dbf8

Please sign in to comment.