From f1538143cfb1ea1b0a8de6a079b30a365d817604 Mon Sep 17 00:00:00 2001 From: Kevin Janssen Date: Wed, 18 Nov 2026 17:41:22 +0100 Subject: [PATCH] Check the machine type after the labelled hostname column --- tests/browser/customer-management.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' });