feat: sort contacts sidebar ignoring case

This commit is contained in:
Robert Perce 2026-04-07 10:49:46 -05:00
parent 1206e211d5
commit 559c1f1760
2 changed files with 11 additions and 2 deletions

View file

@ -111,3 +111,12 @@ test('clicking off contact list when expanded closes it', async ({ page }) => {
await page.mouse.click(600, 500);
await expect(page.getByRole('button', { name: /add contact/i })).not.toBeVisible();
});
test('contact list is sorted ignoring case', async ({ page }) => {
await verifyCreateUser(page, { names: ['Alfa'] });
await verifyCreateUser(page, { names: ['bob'] });
await verifyCreateUser(page, { names: ['Charlie'] });
await expect(page.locator('#contacts-sidebar')).toContainText(/alfa\s*bob\s*charlie/i);
});