diff --git a/tests/integration/tests/27-truenas-storage-disk-history.spec.ts b/tests/integration/tests/27-truenas-storage-disk-history.spec.ts index 12af049e0..6d5bed05f 100644 --- a/tests/integration/tests/27-truenas-storage-disk-history.spec.ts +++ b/tests/integration/tests/27-truenas-storage-disk-history.spec.ts @@ -57,9 +57,9 @@ test.describe('TrueNAS storage disk history', () => { }); await page.goto('/truenas/storage', { waitUntil: 'domcontentloaded' }); - await page - .getByRole('textbox', { name: /Search TrueNAS/ }) - .fill('sdc'); + const search = page.getByRole('combobox', { name: /Search TrueNAS/ }); + await expect(search).toBeVisible(); + await search.fill('sdc'); const diskRow = page.locator('tr').filter({ hasText: 'sdc' }).first(); await expect(diskRow).toBeVisible();