import { expect, test } from '@playwright/test' test.describe('FlowPilot assistant chat smoke tests', () => { test('can open the assistant chat page and see the interface', async ({ page }) => { await page.goto('/assistant') // Should load the assistant chat page — UI shows "AI Assistant" heading await expect(page.getByText('AI Assistant')).toBeVisible({ timeout: 10000 }) // Should show the start conversation button or new chat button await expect(page.getByText('Start a Conversation')).toBeVisible() }) test('can create a new chat session', async ({ page }) => { await page.goto('/assistant') await expect(page.getByText('AI Assistant')).toBeVisible({ timeout: 10000 }) // Click "New Chat" button in the sidebar await page.getByText('New Chat').click() // After creating a chat, a textarea or input should appear for messaging await expect(page.locator('textarea').first()).toBeVisible({ timeout: 5000 }) }) })