diff --git a/tests/browser/customer-management.spec.ts b/tests/browser/customer-management.spec.ts index 9064a1c..7304247 100644 --- a/tests/browser/customer-management.spec.ts +++ b/tests/browser/customer-management.spec.ts @@ -103,9 +103,9 @@ test('creates and renames a customer, opens its inventory, and hides editing for await expect(page.getByRole('combobox', { name: 'Kunde im Gerätebestand', exact: true })).toHaveValue(customerId); const device = page.getByRole('row').filter({ hasText: 'NORD-PC' }); await expect(device).toContainText('Nord GmbH'); - const headers = page.getByRole('columnheader'); - await expect(headers.nth(1)).toHaveText('Hostname'); - await expect(headers.nth(2)).toHaveText('Type'); + const headers = page.locator('.fleet-table thead th[scope="col"]'); + await expect(headers.nth(0)).toHaveText('Hostname'); + await expect(headers.nth(1)).toHaveText('Type'); await expect(device.getByRole('cell').nth(2)).toHaveText('hypervisor'); await expect(device.getByRole('cell').nth(3)).toHaveText('Proxmox VE'); const navigation = page.getByRole('navigation', { name: 'Hauptnavigation' });