From 82f79357dca053f62c0c182387408308fd31cfa6 Mon Sep 17 00:00:00 2001 From: Gandalf the Greybeard Date: Mon, 27 Apr 2026 00:10:59 +0000 Subject: [PATCH] fix(e2e): scope remaining getByText to main element The 'Cluster Score' text matcher was still searching the entire page instead of being scoped to the main content area. This could cause false positives if the same text appears in the sidebar. Co-Authored-By: Paperclip --- e2e/polaris.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/polaris.spec.ts b/e2e/polaris.spec.ts index 037e015..cbd3244 100644 --- a/e2e/polaris.spec.ts +++ b/e2e/polaris.spec.ts @@ -18,7 +18,7 @@ test.describe('Polaris plugin smoke tests', () => { ).toBeVisible(); // "Cluster Score" section exists with a percentage - await expect(page.getByText('Cluster Score')).toBeVisible(); + await expect(page.locator('main').getByText('Cluster Score')).toBeVisible(); await expect(page.locator('main').getByText(/%/).first()).toBeVisible(); });