diff --git a/packages/calcite-components/src/components/table/table.e2e.ts b/packages/calcite-components/src/components/table/table.e2e.ts index 515e35d62e4..36c11fd7eed 100644 --- a/packages/calcite-components/src/components/table/table.e2e.ts +++ b/packages/calcite-components/src/components/table/table.e2e.ts @@ -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(); + } } }); });