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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user