Skip to content

Commit

Permalink
✨ Support new dropdown for language select
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Jun 17, 2024
1 parent d965a1b commit 8913a27
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions cypress/e2e/models/migration/applicationinventory/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,16 @@ export class Analysis extends Application {

public static selectLanguage(language: Languages) {
cy.wait(2 * SEC);
click(`${actionSelectToggle} > button`);
clickByText("button", language);
click(actionSelectToggle);
clickByText("div", language);
click(actionSelectToggle);
}

protected selectTarget(target: string[]): void {
for (let i = 0; i < target.length; i++) {
if (["OpenJDK 11", "OpenJDK 17", "OpenJDK 21"].includes(target[i])) {
click(openjdkToggleButton);
clickByText(dropDownMenu, target[i]);
} else if (["camel:3", "camel:4"].includes(target[i])) {
click(camelToggleButton);
clickByText(dropDownMenu, target[i]);
}
cy.get("div.pf-v5-c-empty-state__content").contains(target[i]).click();
}
protected selectTarget(targets: string[]): void {
targets.forEach((targetName) => {
let cardId = `#target-card-${targetName.replace(/\s+/g, "-")}`;
cy.get(cardId).find('input[type="checkbox"]').check({ force: true });
});
}

protected uploadBinary() {
Expand Down

0 comments on commit 8913a27

Please sign in to comment.