Skip to content

Commit

Permalink
Fixed pressing kebab and edit buttons in application rows (#721)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins authored Sep 18, 2023
1 parent 931b8b5 commit 901989a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/views/applicationinventory.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export const cyclicDependenciesErrorMsg = "cyclic dependencies are not allowed";
export const northdependenciesDropdownBtn = "button[aria-label='northbound-dependencies-toggle']";
export const southdependenciesDropdownBtn = "button[aria-label='southbound-dependencies-toggle']";
export const date = "Date";
export const editButton = "td[class='pf-v5-c-table__td pf-v5-c-table__action'] > button";
export const editButton = "#pencil-action";
export const importStatus = "Status";
export const northboundHelper = "div[id=northbound-dependencies-helper]";
export const southboundHelper = "div[id=southbound-dependencies-helper]";
export const selectBox = "input[type=checkbox]";
export const tags = "span";
export const user = "User";
export const kebabMenu = "button[aria-label='Kebab toggle']";
export const topKebabMenu = "div > button[aria-label='Actions']";
export const kebabMenu = "#row-actions";
export const topKebabMenu = "#toolbar-kebab";
export const kebabMenuItem = "a.pf-v5-c-dropdown__menu-item";
// This is on the Application imports page.
export const sideKebabMenuImports = "button[aria-label='Kebab toggle']";
Expand Down
2 changes: 1 addition & 1 deletion cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ export function performRowActionByIcon(itemName: string, action: string): void {
cy.contains(itemName, { timeout: 120 * SEC })
.closest(trTag)
.within(() => {
click(action);
clickWithin(action, button);
});
}

Expand Down

0 comments on commit 901989a

Please sign in to comment.