: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 { PlaywrightWorkspaceSetupResult, expect, test } from '../utils/workspace-test-base'
test.describe('Before Onboarding', () => {
// Use a fresh workspace without demo data to exercise reaching settings pages on a new org/team.
let workspace: PlaywrightWorkspaceSetupResult | null = null
test.beforeAll(async ({ playwrightSetup }) => {
workspace = await playwrightSetup.createWorkspace({ no_demo_data: true })
})
test.beforeEach(async ({ page, playwrightSetup }) => {
await playwrightSetup.login(page, workspace!)
})
test('Navigate to a settings page even when a product has not been set up', async ({ page }) => {
await page.goto('/settings/user')
await expect(page.getByRole('heading', { level: 1 })).toContainText('Settings - Profile')
await page.goto('/settings/organization')
await expect(page.getByRole('heading', { level: 1 })).toContainText('Settings - General')
})
})