- Added CommentsPanel component for managing comments on documents. - Integrated comment creation, deletion, and resolution functionalities. - Implemented activity tracking for document interactions. - Enhanced SketchPage with editing and saving capabilities. - Introduced template management API endpoints for creating, sharing, and deleting templates. - Added runtime validation report for frontend and backend. - Created GettingStartedPanel for user onboarding with template options. - Implemented Playwright E2E tests for accessibility and export functionality.
13 lines
525 B
TypeScript
13 lines
525 B
TypeScript
import { expect, type Page } from '@playwright/test'
|
|
|
|
export async function login(page: Page) {
|
|
const email = process.env.E2E_USERNAME
|
|
const password = process.env.E2E_PASSWORD
|
|
if (!email || !password) return false
|
|
await page.goto('/login')
|
|
await page.getByLabel(/email|username/i).first().fill(email)
|
|
await page.getByLabel(/password/i).fill(password)
|
|
await page.getByRole('button', { name: /sign in|log in/i }).click()
|
|
await expect(page).toHaveURL(/dashboard|workspace/, { timeout: 15_000 })
|
|
return true
|
|
}
|