fix(ui): speed up detector threshold slider keypresses in test (#123078)
## Why
`projectPerformance` Consecutive DB detector threshold case was hitting
the default **5s** jest timeout on frontend deploys.
## Root cause
Not an ancient flake — regression from the scraps migration
([#119187](https://github.com/getsentry/sentry/pull/119187),
2026-08-10).
**Before scraps**, the test used hold-key syntax in one call:
```ts
await userEvent.keyboard(`{ArrowRight>${indexDelta}}`);
```
**After scraps**, it became a per-key await loop (hold syntax
under-steps the React Aria/scraps slider by 1). The Consecutive DB case
does **17** steps (`100 → 5000`). Under deploy/CI load that blows the 5s
default timeout. Solo it still usually passes.
## Fix
Keep per-key presses (correct for scraps slider), but use
`userEvent.setup({delay: null})` so large deltas stay under 5s.
## Verify
`pnpm test-ci
static/app/views/settings/projectPerformance/projectPerformance.spec.tsx`
→ **50/50**.
<!-- junior-request-attribution:start -->
Requested by **telkins**.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC8V02RHC7%3A1787954529.802769 -->
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC8V02RHC7%3A1787954529.802769)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC8V02RHC7%3A1787954529.802769/?project=4510944073809921)
<!-- junior-session-footer:end -->
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Trevor Elkins <trevor.elkins@sentry.io> S
sentry-junior[bot] committed
0f4ffa9e6446ba40767746bb0d020a36361795ec
Parent: a6e9426
Committed by GitHub <noreply@github.com>
on 8/28/2026, 10:29:59 PM