|
|
преди 1 месец | |
|---|---|---|
| .. | ||
| README.md | преди 1 месец | |
| api.spec.ts | преди 1 месец | |
| websocket.spec.ts | преди 1 месец | |
This directory contains end-to-end tests for the web application using Playwright.
Before running the e2e tests, make sure you have:
# Terminal 1: Start the service
pnpm run service
# Terminal 2: Start the web app and run e2e tests
pnpm run test:e2e:full
pnpm run test:e2e
api.spec.ts - Tests HTTP API endpoints (GET, POST, PUT, DELETE)websocket.spec.ts - Tests WebSocket/Socket.IO functionalityapi.spec.ts)Settings CRUD Operations:
/config/settings - Retrieve all settings/config/settings - Create/update settings/config/settings/:key - Get specific setting/config/settings/:key - Delete specific settingTasks CRUD Operations:
/tasks - List all tasks/tasks - Create new task/tasks/:id - Update existing task/tasks/:id - Delete taskFiles CRUD Operations:
/files - List files/files/stats/* - File statistics/files/:dataset/:file - Upload/create file/files/:dataset/:file - Retrieve specific file/files/:dataset/:file - Delete fileError Handling:
websocket.spec.ts)taskUpdate events (triggered by settings changes)fileUpdate events (triggered by file operations)watcherUpdate events (triggered by watcher status changes)To run tests with UI mode for debugging:
pnpm run test:e2e:ui
This will open a browser window showing the test execution.
http://localhost:3001