Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(replay-vision): use the storybook play timeout in scanner stories (#111480)

Shy Alter377dd0e3b14e
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 94c276113c24..9056db2dd933 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4619,6 +4619,9 @@ importers:
'@storybook/react':
specifier: 'catalog:'
+ '@testing-library/dom':
+ specifier: '*'
+ version: 10.4.0
'@types/react':
specifier: 18.3.27
version: 18.3.27
diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx
index 0da166265fac..6195a55ac063 100644
--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx
+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx
@@ -1,4 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react'
+import { within } from '@testing-library/dom'
+import userEvent from '@testing-library/user-event'
import { FEATURE_FLAGS } from 'lib/constants'
import { App } from 'scenes/App'
@@ -13,8 +15,6 @@ import { sessionFrameResponse } from '~/mocks/fixtures/sessionFrame'
import { RecordingsQuery } from '~/queries/schema/schema-general'
import { StartupProgramLabel } from '~/types'
-import { userEvent, within } from 'storybook/test'
-
import { LONG, LONG_INACTIVE, summary as timelineSummary } from '../__mocks__/recordingTimelineObservations'
import type {
BackfillEstimateResponseApi,
diff --git a/products/replay_vision/package.json b/products/replay_vision/package.json
index 428620709e03..599738f9e1f3 100644
--- a/products/replay_vision/package.json
+++ b/products/replay_vision/package.json
@@ -23,6 +23,7 @@
"@posthog/icons": "catalog:",
"@posthog/lemon-ui": "*",
"@storybook/react": "catalog:",
+ "@testing-library/dom": "*",
"@types/react": "*",
"clsx": "*",
"react": "*",