[v4]: add `method` arg to `/click` route stub
Merged
SE
8mo ago+42+42+01234567890123456789-3-3-0123456789
why
- to group two types of clicking into a single route. ie, we don't need to add a separate
/sendClickEventroute
what changed
- added an optional
syntheticparameter to the/clickschema, which we will internally route to.sendClickEvent()
screenshot:
test plan
- added a test to verify passing
synthetic: truepasses validation
Summary by cubic
Add a method param to the v4 /click route to support both coordinate-based and JS event clicks in one endpoint, defaulting to xy for backward compatibility. Caps clickCount at 3 and updates the OpenAPI/action output. Addresses Linear STG-1659.
- New Features
- Adds
method: 'xy' | 'jsevent'(defaultxy) to/clickparams; action output now includes and requiresmethodviaPageClickParamsOutput. - Limits
clickCountto 1–3 in schema and OpenAPI inpackages/server-v4. - Adds integration tests for coordinate clicks and
method: "jsevent"selector clicks.
- Adds