feat: Add comprehensive test suite with Playwright
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
This commit is contained in:
1 parent
46a90ae910
commit
c44bbefc5e
3 files changed
+247
No files matched your search
@@ -0,0 +1,12 @@
|
||||
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',
|
||||
};
|
||||
Reference in new issue
Block a user