From f9325772bdedeb0edc92cf62c67d730111d216ea Mon Sep 17 00:00:00 2001 From: privilegedescalation-engineer Date: Wed, 25 Mar 2026 01:55:02 +0000 Subject: [PATCH] fix(e2e): use specific regex for nodes page heading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /node/i regex was too broad and matched both the page heading 'Intel GPU — Nodes' and the empty state 'No GPU Nodes Found', causing a strict mode violation in Playwright. Use /intel gpu.*nodes/i to match only the actual page heading, which contains 'Intel GPU' before 'Nodes'. --- e2e/intel-gpu.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/intel-gpu.spec.ts b/e2e/intel-gpu.spec.ts index 7b58492..8c3ef5c 100644 --- a/e2e/intel-gpu.spec.ts +++ b/e2e/intel-gpu.spec.ts @@ -66,7 +66,7 @@ test.describe('Intel GPU plugin smoke tests', () => { }); await page.goto('/c/main/intel-gpu/nodes'); - await expect(page.getByRole('heading', { name: /node/i })).toBeVisible({ timeout: 15_000 }); + await expect(page.getByRole('heading', { name: /intel gpu.*nodes/i })).toBeVisible({ timeout: 15_000 }); await page.goto('/c/main/intel-gpu/pods'); await expect(page.getByRole('heading', { name: /pod/i })).toBeVisible({ timeout: 15_000 });