From 3228763b905cb3b60e51534336094cae5e9e47fa Mon Sep 17 00:00:00 2001 From: privilegedescalation-engineer Date: Wed, 25 Mar 2026 06:36:39 +0000 Subject: [PATCH] fix(e2e): use specific heading selectors to avoid strict mode violations Use full page heading text in E2E test selectors instead of generic short terms like /node/i or /pod/i that can match multiple SectionBox headings on the same page. Co-Authored-By: Paperclip --- e2e/intel-gpu.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/intel-gpu.spec.ts b/e2e/intel-gpu.spec.ts index 7b58492..df4b62d 100644 --- a/e2e/intel-gpu.spec.ts +++ b/e2e/intel-gpu.spec.ts @@ -43,7 +43,7 @@ test.describe('Intel GPU plugin smoke tests', () => { test('device plugins page renders or shows empty state', async ({ page }) => { await page.goto('/c/main/intel-gpu/device-plugins'); - await expect(page.getByRole('heading', { name: /device plugin/i })).toBeVisible({ + await expect(page.getByRole('heading', { name: /Intel GPU — Device Plugins/i })).toBeVisible({ timeout: 15_000, }); @@ -66,13 +66,13 @@ 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 }); + await expect(page.getByRole('heading', { name: /Intel GPU — Pods/i })).toBeVisible({ timeout: 15_000 }); await page.goto('/c/main/intel-gpu/metrics'); - await expect(page.getByRole('heading', { name: /metric/i })).toBeVisible({ timeout: 15_000 }); + await expect(page.getByRole('heading', { name: /Intel GPU — Metrics/i })).toBeVisible({ timeout: 15_000 }); }); test('plugin settings page shows intel-gpu plugin entry', async ({ page }) => { -- 2.52.0