A playlist row's X marks the episode played (#497)
renderPlaylist set an onclick of its own over listenRow's, to play on through the playlist, and returned early for a click on the X instead of calling its remove, so Mark played never ran. listenRow now takes what a play click does, and the playlist passes playFrom instead of replacing the handler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
This commit is contained in:
@@ -544,6 +544,13 @@ test('a smart playlist puts its first podcasts ahead and plays on through itself
|
||||
await expect(page.locator('#ptitle')).toHaveText('First Episode');
|
||||
await page.locator('#pclose').click();
|
||||
|
||||
// Its X marks it played (#497): an onclick of the playlist's own once skipped it.
|
||||
const twoFiles = async () => (await page.evaluate(() => api('/api/feeds/multi-show/entries')) as ListPage).entries
|
||||
.find(e => e.title === 'Two Files')!;
|
||||
await page.locator('#listening .childrow', { hasText: 'Two Files' }).locator('[data-a="remove"]').click();
|
||||
await expect.poll(async () => (await twoFiles()).read).toBe(true);
|
||||
await page.evaluate(e => setRead(e, false), await twoFiles());
|
||||
|
||||
await page.locator('#content .acts [data-a="rm"]').click();
|
||||
await answer(page);
|
||||
await expect(page.locator('#feedlist .feed.child', { hasText: 'Commute' })).toHaveCount(0);
|
||||
|
||||
Reference in New Issue
Block a user