Backend conftest.py was hardcoded to patherly_test but CI creates resolutionflow_test — now reads DATABASE_URL env var first. E2E tests had stale placeholder text, heading, and landing page assertions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
695 B
TypeScript
26 lines
695 B
TypeScript
import { expect, test } from '@playwright/test'
|
|
|
|
test.use({ storageState: { cookies: [], origins: [] } })
|
|
|
|
test.describe('public route smoke tests', () => {
|
|
test('landing page loads', async ({ page }) => {
|
|
await page.goto('/landing')
|
|
|
|
await expect(
|
|
page.getByRole('link', { name: 'Start Free' }),
|
|
).toBeVisible()
|
|
await expect(
|
|
page.getByText('Resolve tickets faster.'),
|
|
).toBeVisible()
|
|
})
|
|
|
|
test('protected routes redirect unauthenticated users to landing', async ({ page }) => {
|
|
await page.goto('/sessions')
|
|
|
|
await expect(page).toHaveURL(/\/landing$/)
|
|
await expect(
|
|
page.getByRole('link', { name: 'Sign In' }),
|
|
).toBeVisible()
|
|
})
|
|
})
|