feat: add E2E tests for device creation and account management
Some checks failed
CI / test (push) Failing after 2m4s
CI / release (push) Has been skipped
CI / docker (push) Has been skipped

10 E2E tests using NiceGUI's User fixture:
- Device creation flow and name validation
- Password change (success, wrong current, mismatch, too short)
- API token creation, TOTP registration, invalid code rejection
- Account deletion with email confirmation

Tests live in tests/e2e/ with a separate conftest that loads the
NiceGUI testing plugin. CI runs unit and E2E tests as separate steps.
This commit is contained in:
Stefano Bertelli 2026-03-30 22:26:15 -05:00
parent 3d1ca7444b
commit 5adb0c86ce
7 changed files with 283 additions and 5 deletions

View file

@ -40,8 +40,11 @@ jobs:
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest -v --tb=short
- name: Run unit tests
run: uv run pytest tests/ --ignore=tests/e2e -v --tb=short
- name: Run E2E tests
run: uv run pytest tests/e2e/ -v --tb=short
release:
needs: test