- Fix 97 lint errors → 0 (unused imports, params, variables across 40+ files) - Fix i18n key format: colon → dot notation for next-intl compatibility - Add missing i18n keys (routes.application, routes.home, confirm) - Fix module visibility: sidebar now respects per-account DB features - Fix inject function: use dot-notation keys, add collapsed:true defaults - Fix ConfirmDialog: use useTranslations instead of hardcoded German defaults - Fix events page: replace placeholder 'Beschreibung' with proper description - Fix Dockerfile: add NEXT_PUBLIC_CI ARG for Docker builds - Collapse secondary sidebar sections by default for cleaner UX
28 lines
787 B
TypeScript
28 lines
787 B
TypeScript
/**
|
|
* E2E Test: Course Enrollment
|
|
*/
|
|
import { test } from '@playwright/test';
|
|
|
|
test.describe('Course Management', () => {
|
|
test('create course, enroll participant, check capacity, waitlist', async ({
|
|
page: _page,
|
|
}) => {
|
|
// Create course with capacity 2
|
|
// Enroll participant 1 → status: enrolled
|
|
// Enroll participant 2 → status: enrolled
|
|
// Enroll participant 3 → status: waitlisted (capacity full)
|
|
});
|
|
|
|
test('course calendar view shows sessions', async ({ page: _page }) => {
|
|
// Create course with sessions
|
|
// Navigate to calendar
|
|
// Verify sessions visible
|
|
});
|
|
|
|
test('attendance tracking', async ({ page: _page }) => {
|
|
// Create course + session + participants
|
|
// Mark attendance
|
|
// Verify attendance persists
|
|
});
|
|
});
|