Synchronize TrueNAS storage drawer search

Target the hydrated search combobox and require it to be visible before filling it, keeping the disk-history journey aligned with the rendered control.

Contract-Neutral: true
This commit is contained in:
rcourtman 2026-08-23 11:59:38 +01:00
parent 34ae5c98f9
commit e810969a25

View file

@ -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();