From b021a4a8acfc0a2fe1c81cc2959f55c88f2e3336 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Thu, 19 Mar 2026 21:39:18 -0700 Subject: [PATCH] Fix e2e tests for contact stuff --- tests/e2e/specs/contacts.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/specs/contacts.spec.ts b/tests/e2e/specs/contacts.spec.ts index 7d726e1..17b3429 100644 --- a/tests/e2e/specs/contacts.spec.ts +++ b/tests/e2e/specs/contacts.spec.ts @@ -6,9 +6,9 @@ function escapeRegex(s: string): string { return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } -/** Find a named non-repeater contact (type 2 = repeater). */ +/** Find a named normal chat contact (exclude repeaters and room servers). */ function findChatContact(contacts: Contact[]): Contact | undefined { - return contacts.find((c) => c.name && c.name.trim().length > 0 && c.type !== 2); + return contacts.find((c) => c.name && c.name.trim().length > 0 && c.type !== 2 && c.type !== 3); } test.describe('Contacts sidebar & info pane', () => {