From 0c3b828b09e90b32d78d239afb1a68d0a10d0b03 Mon Sep 17 00:00:00 2001 From: Bijin A B Date: Sat, 14 Feb 2026 01:40:51 +0530 Subject: [PATCH] fix: update header validation test to use triple-click for selecting all text (#7140) --- tests/request/headers/header-validation.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/request/headers/header-validation.spec.ts b/tests/request/headers/header-validation.spec.ts index 4c5c62fab..9bf2f8975 100644 --- a/tests/request/headers/header-validation.spec.ts +++ b/tests/request/headers/header-validation.spec.ts @@ -51,9 +51,8 @@ test.describe.serial('Header Validation', () => { const headerRow = page.locator('table tbody tr').first(); const nameCell = getTableCell(headerRow, 0); - // Clear and enter a valid header name - await nameCell.locator('.CodeMirror').click(); - await page.keyboard.press('Meta+a'); + // Clear and enter a valid header name - use triple-click to select all (works cross-platform) + await nameCell.locator('.CodeMirror').click({ clickCount: 3 }); await nameCell.locator('textarea').fill('Valid-Header'); // Verify the error icon is not visible