Skip to content

Commit

Permalink
Refactored statement in test per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
josercarcamo committed Jan 18, 2025
1 parent f8a9016 commit 37cabf8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/calcite-components/src/components/table/table.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ describe("calcite-table", () => {
await page.waitForChanges();
const items = await page.findAll("calcite-table-row");
for (let i = 0; i < items.length; i++) {
const style = await items[i].getComputedStyle();
expect(style["display"]).toBe(i === 2 || i === 3 ? "none" : "contents");
if (i === 2 || i === 3) {
expect(await items[i].isVisible()).toBeFalsy();
} else {
expect(await items[i].isVisible()).toBeTruthy();
}
}
});
});
Expand Down

0 comments on commit 37cabf8

Please sign in to comment.