Skip to content

Commit

Permalink
remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alokhyland committed Oct 23, 2024
1 parent f20a300 commit 119f257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class CloudServices extends BasePage {
.$$('nuxeo-data-table[name="table"] nuxeo-data-table-row:not([header])')
.map((img) => img.$('nuxeo-data-table-cell span[name="id"]').getText());
const index = deleted.findIndex((currenTitle) => currenTitle === clientId);
if (index !== -1 && rows && rows.length > 0) {
if (index !== -1) {
const rowEle = await rows[index].$('[name="delete"]');
await rowEle.click();
await driver.alertAccept();
Expand Down

0 comments on commit 119f257

Please sign in to comment.