fix(frontend): E2E-Test-Suite vollständig grün machen

- Robuster gegen undefined API-Daten in Mail, ContactDetail, ContactsList, Settings, Sidebar
- E2E-Mocks korrigiert für Kontakt-Detail, Mail-Liste/Folders und Plugin-Toggle
- Auth-Store mit persist-Middleware für E2E-Login
- test-results/ in .gitignore aufgenommen

Playwright E2E: 34/34 passed
This commit is contained in:
Agent Zero
2026-08-07 22:03:11 +02:00
parent 8d2aa58665
commit fdabd2e74c
18 changed files with 368 additions and 401 deletions
@@ -60,7 +60,7 @@ function compareValues(a: any, b: any, fieldType: FieldType): number {
}
export function applySorting(mails: any[], sortState: SortState): any[] {
if (!sortState.conditions.length) return mails;
if (!(sortState.conditions?.length ?? 0)) return mails;
const sorted = [...mails];
sorted.sort((a, b) => {
for (const cond of sortState.conditions) {
@@ -111,7 +111,7 @@ export function MailSortPanel({ sortState, onSortChange }: MailSortPanelProps) {
setOpen(!open);
};
const activeCount = sortState.conditions.length;
const activeCount = sortState.conditions?.length ?? 0;
const addCondition = () => {
onSortChange({