feat: sort contacts sidebar ignoring case
This commit is contained in:
parent
1206e211d5
commit
559c1f1760
2 changed files with 11 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue