From 1ec453a75ab18aa6119c993fdca80f89c1e1eff1 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 14 Jun 2022 12:06:03 +0200 Subject: SONAR-16489 Security Hotspot assignee field interacts with hotspot selection --- server/sonar-web/src/main/js/helpers/testUtils.ts | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'server/sonar-web/src/main/js/helpers') diff --git a/server/sonar-web/src/main/js/helpers/testUtils.ts b/server/sonar-web/src/main/js/helpers/testUtils.ts index 603c3f32a02..5447d52f898 100644 --- a/server/sonar-web/src/main/js/helpers/testUtils.ts +++ b/server/sonar-web/src/main/js/helpers/testUtils.ts @@ -23,10 +23,25 @@ import { KeyboardKeys } from './keycodes'; export function mockEvent(overrides = {}) { return { - target: { blur() {} }, - currentTarget: { blur() {} }, - preventDefault() {}, - stopPropagation() {}, + target: { + blur() { + /* noop */ + } + }, + currentTarget: { + blur() { + /* noop */ + } + }, + preventDefault() { + /* noop */ + }, + stopPropagation() { + /* noop */ + }, + stopImmediatePropagation() { + /* noop */ + }, ...overrides } as any; } -- cgit v1.2.3