Search Currently Listening from the search box (#127)
Currently Listening's search box said "Search items…" and did nothing: loadEntries returns early for a place with its own list. Typing now redraws the list with the search sent along, as /api/entries already takes one, title and text, and says so when nothing in progress matches. The keys list says / searches it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -263,6 +263,15 @@ test('Currently Listening, its own place below the Directory, resumes an episode
|
||||
await expect(row).toBeVisible({ timeout: 20_000 });
|
||||
await expect(row).toContainText('14:18 left');
|
||||
|
||||
// The search box looks through it, as it does a feed's items (#127).
|
||||
await page.locator('#epSearch').fill('second');
|
||||
await expect(row).toBeVisible();
|
||||
await page.locator('#epSearch').fill('nothing-is-called-this');
|
||||
await expect(row).toHaveCount(0);
|
||||
await expect(page.locator('#listening')).toContainText('Nothing you are listening to mentions');
|
||||
await page.locator('#epSearch').fill('');
|
||||
await expect(row).toBeVisible();
|
||||
|
||||
// Removing it forgets where you got to, so it is still gone on the next visit.
|
||||
await row.locator('[data-a=remove]').click();
|
||||
await expect(row).toHaveCount(0);
|
||||
|
||||
Reference in New Issue
Block a user