From 375f43265d4d95d338a49204c072d3124ca9dc14 Mon Sep 17 00:00:00 2001 From: Paperclip Date: Tue, 14 Apr 2026 23:45:47 +0000 Subject: [PATCH] fix(e2e): use specific regex for overview heading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /intel.gpu/i regex was too broad and could match multiple headings on the overview page, causing strict mode violations in Playwright. Use /Intel GPU — Overview/i to match only the actual page heading, which contains 'Intel GPU' before 'Overview'. Co-Authored-By: Paperclip --- e2e/intel-gpu.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/intel-gpu.spec.ts b/e2e/intel-gpu.spec.ts index df4b62d..104380d 100644 --- a/e2e/intel-gpu.spec.ts +++ b/e2e/intel-gpu.spec.ts @@ -19,14 +19,14 @@ test.describe('Intel GPU plugin smoke tests', () => { // Should navigate to the overview route await expect(page).toHaveURL(/\/intel-gpu$/); - await expect(page.getByRole('heading', { name: /intel.gpu/i })).toBeVisible(); + await expect(page.getByRole('heading', { name: /Intel GPU — Overview/i })).toBeVisible(); }); test('overview page renders GPU device list or empty state', async ({ page }) => { await page.goto('/c/main/intel-gpu'); // Overview heading should be present - await expect(page.getByRole('heading', { name: /intel.gpu/i })).toBeVisible({ + await expect(page.getByRole('heading', { name: /Intel GPU — Overview/i })).toBeVisible({ timeout: 15_000, }); @@ -61,7 +61,7 @@ test.describe('Intel GPU plugin smoke tests', () => { // not after clicking the parent entry from the overview. Test route // accessibility via direct navigation — each route must render its heading. await page.goto('/c/main/intel-gpu'); - await expect(page.getByRole('heading', { name: /intel.gpu/i })).toBeVisible({ + await expect(page.getByRole('heading', { name: /Intel GPU — Overview/i })).toBeVisible({ timeout: 15_000, });