MCPcopy Index your code
hub / github.com/angular/components / clickHelper

Function clickHelper

src/aria/tree/tree.spec.ts:47–56  ·  view source on GitHub ↗
(target: HTMLElement, eventInit: PointerEventInit = {})

Source from the content-addressed store, hash-verified

45 }
46 };
47 const clickHelper = async (target: HTMLElement, eventInit: PointerEventInit = {}) => {
48 target.dispatchEvent(
49 new PointerEvent('click', {
50 bubbles: true,
51 ...eventInit,
52 }),
53 );
54 await fixture.whenStable();
55 defineTestVariables();
56 };
57 const click = async (target: HTMLElement) => await clickHelper(target);
58 const shiftClick = async (target: HTMLElement) => await clickHelper(target, {shiftKey: true});
59 const ctrlClick = async (target: HTMLElement) => await clickHelper(target, {ctrlKey: true});

Callers 3

clickFunction · 0.85
shiftClickFunction · 0.85
ctrlClickFunction · 0.85

Calls 2

defineTestVariablesFunction · 0.70
dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…