: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'
import { initKeaTests } from '~/test/init'
import { ConversationsWidgetPreview } from './ConversationsWidgetPreview'
describe('ConversationsWidgetPreview', () => {
beforeEach(() => {
initKeaTests()
})
it('renders the Support ticket row preview from the shared widget samples', () => {
render(<ConversationsWidgetPreview />)
expect(screen.getByText('Jordan Lee')).toBeInTheDocument()
expect(screen.getByText(/I can't invite a teammate to our project/)).toBeInTheDocument()
expect(screen.getByText('critical')).toBeInTheDocument()
expect(screen.getByText('Morgan Chen')).toBeInTheDocument()
})
})