MCPcopy
hub / github.com/angular/components / click

Function click

src/aria/tabs/tabs.spec.ts:51–60  ·  view source on GitHub ↗
(target: HTMLElement, eventInit?: PointerEventInit)

Source from the content-addressed store, hash-verified

49 };
50
51 const click = async (target: HTMLElement, eventInit?: PointerEventInit) => {
52 target.dispatchEvent(
53 new PointerEvent('click', {
54 bubbles: true,
55 ...eventInit,
56 }),
57 );
58 await fixture.whenStable();
59 defineTestVariables();
60 };
61
62 const space = async (modifierKeys?: ModifierKeys) => await keydown(' ', modifierKeys);
63 const enter = async (modifierKeys?: ModifierKeys) => await keydown('Enter', modifierKeys);

Callers 1

tabs.spec.tsFile · 0.70

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…