Now Playing: a full view of what is playing (#475)
Tapping the player bar, or Enter on it, opens a sheet over the feeds and the list: the episode's artwork large, its podcast, its show notes and Up Next. The bar stays below it with the controls, so there is one set of them rather than a second kept in step. Chapters are left for #477: nothing reads them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -475,6 +475,38 @@ test('the Podcasts shelf shows the feeds with episodes, as their artwork, and op
|
||||
await expect(page.locator('#eps .ep', { hasText: 'First Episode' })).toBeVisible();
|
||||
});
|
||||
|
||||
test('Now Playing opens from the player bar with the artwork, show notes and Up Next (#475)', async ({ page }) => {
|
||||
await page.evaluate(() => saveUpNext([]));
|
||||
await page.locator('.feed', { hasText: 'Test Show' }).click();
|
||||
const first = page.locator('#eps .ep', { hasText: 'First Episode' });
|
||||
await first.hover();
|
||||
await first.locator('[data-a=queue]').click();
|
||||
const second = page.locator('#eps .ep', { hasText: 'Second Episode' });
|
||||
await second.hover();
|
||||
await second.locator('[data-a=play]').click();
|
||||
await expect(page.locator('#ptitle')).toHaveText('Second Episode');
|
||||
|
||||
const sheet = page.locator('#nowsheet');
|
||||
await page.locator('#pnow').click();
|
||||
await expect(sheet).toBeVisible();
|
||||
await expect(page.locator('#pnow')).toHaveAttribute('aria-expanded', 'true');
|
||||
await expect(sheet.locator('h2')).toHaveText('Second Episode');
|
||||
await expect(sheet.locator('.dbody')).toContainText('Notes for the second.');
|
||||
await expect(sheet.locator('#nowqueue .childrow')).toHaveText([/First Episode/]);
|
||||
await page.keyboard.press('Escape');
|
||||
await expect(sheet).toBeHidden();
|
||||
// From the keyboard too, and the podcast's name opens its feed.
|
||||
await page.locator('#pnow').focus();
|
||||
await page.keyboard.press('Enter');
|
||||
await sheet.locator('.nowshow').click();
|
||||
await expect(sheet).toBeHidden();
|
||||
await expect(page.locator('#eps .ep', { hasText: 'Second Episode' })).toBeVisible();
|
||||
|
||||
await page.locator('#pclose').click();
|
||||
await page.evaluate(() => saveUpNext([]));
|
||||
await page.evaluate(() => api('/api/entries/test-show/ui-2/position', { method: 'POST', body: JSON.stringify({ secs: 0 }) }));
|
||||
});
|
||||
|
||||
test('a player nobody has played since it last saved does not save again', async ({ page }) => {
|
||||
// A tab left paused at 41:15 saved that as it reloaded, over the 32:48 another had reached,
|
||||
// and the episode dropped out of Currently Listening. The fixture audio does not decode, so
|
||||
|
||||
Reference in New Issue
Block a user