Test Suite: - playwright.config.js: Config for dev environment (http://192.168.2.49:3098) - tests/dev-smoke-test.spec.js: 8 tests covering: * Login functionality * Dashboard loading * Navigation to Exercises/Clubs * Desktop-Sidebar visibility (≥1024px) * Bottom-Nav visibility (Mobile) * Session persistence after reload * Console error checking Gitea CI/CD: - .gitea/workflows/test.yml: Automated testing after deploy * Backend syntax check * Frontend build test * Playwright E2E tests * Screenshot upload on failure Test Coverage: - Auth flow (login, session persistence) - Responsive navigation (mobile + desktop) - Page navigation (dashboard, exercises, clubs) - Error detection (console errors) Next: Run tests locally, then implement Exercise CRUD
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
module.exports = {
|
|
testDir: './tests',
|
|
timeout: 30000,
|
|
use: {
|
|
channel: 'chrome',
|
|
headless: true,
|
|
viewport: { width: 390, height: 844 },
|
|
screenshot: 'only-on-failure',
|
|
baseURL: 'http://192.168.2.49:3098',
|
|
},
|
|
reporter: 'list',
|
|
};
|