Skip to content

Commit

Permalink
A few changes
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Aug 30, 2023
1 parent 8778802 commit 7cc97c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ export function deleteApplicationTableRows(): void {
}

export function deleteAppImportsTableRows() {
function deleteItems(rowCount): void {
function deleteItems(rowCount: number): void {
if (rowCount < 1) return;
cy.get(sideKebabMenuImports, { timeout: 10000 }).first().click();
cy.get("ul[role=menu] > li").contains("Delete").click();
Expand All @@ -873,8 +873,7 @@ export function deleteAppImportsTableRows() {
cy.get(commonView.appTable)
.find(trTag)
.then(($rows) => {
let rowCount = 0;
rowCount = $rows.length - 1;
const rowCount = $rows.length - 1;

if (rowCount >= 1) deleteItems(rowCount);
});
Expand Down

0 comments on commit 7cc97c2

Please sign in to comment.