diff --git a/code/test/component/table-basic.spec.ts b/code/test/component/table-basic.spec.ts index e5a3fa333..a367c23f7 100644 --- a/code/test/component/table-basic.spec.ts +++ b/code/test/component/table-basic.spec.ts @@ -8,6 +8,6 @@ test('table-basic', async ({ page }, { config }) => { const table = await locatorOne(sceneRoot, 'table.ui'); await expectHeadersOrder(table, ['Id', 'Size', 'Created']); - expectHeaderRowCount(table, 1); - expectTableRowCount(table, 3); + await expectHeaderRowCount(table, 1); + await expectTableRowCount(table, 3); }); diff --git a/code/test/component/table-sorting.spec.ts b/code/test/component/table-sorting.spec.ts index 980b4468e..4c0b09195 100644 --- a/code/test/component/table-sorting.spec.ts +++ b/code/test/component/table-sorting.spec.ts @@ -9,8 +9,8 @@ test('table-sorting', async ({ page }, { config }) => { await expectHeadersOrder(table, ['Id', 'Size', 'Created', 'Not sortable']); - expect(table.locator('thead tr')).toHaveCount(1); - expectTableRowCount(table, 3); + await expect(table.locator('thead tr')).toHaveCount(1); + await expectTableRowCount(table, 3); // Sorted by default by Created ascending by scene definition await expectColumnData(page, table, 'Created', ['1725666894','1725667915','1726074087']);