Add a feed without Popular; a phone shows an item's files above its notes
- The Add a feed dialog no longer lists Popular; the sidebar has it (#30). - On a phone the files, with play and delete, come before the show notes. Below them, long notes buried the delete button and it looked missing on iOS (#21). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -770,9 +770,10 @@ test('Popular lists what everyone here reads, but never a private feed', async (
|
||||
await pick('tabs', 'All').click();
|
||||
await expect(tiles).toHaveCount(dir.length);
|
||||
|
||||
// Add a feed opened over Directory fills its own list, not the pane behind it.
|
||||
// Add a feed is for an address; Popular and Directory are where you browse (issue #30).
|
||||
await piper.locator('#addFeed').click();
|
||||
await expect(piper.locator('#modalCard .childrow', { hasText: 'Test Show' })).toBeVisible();
|
||||
await expect(piper.locator('#nurl')).toBeVisible();
|
||||
await expect(piper.locator('#modalCard .childrow')).toHaveCount(0);
|
||||
await expect(tiles).toHaveCount(dir.length);
|
||||
await piper.locator('#modalCard button[title="Cancel"]').click();
|
||||
|
||||
@@ -1022,3 +1023,20 @@ test('the pinned heading sits over its pins, and the page is set in Inter', asyn
|
||||
expect((await page.request.get('/inter.woff2')).headers()['content-type']).toBe('font/woff2');
|
||||
expect(await page.evaluate(() => document.fonts.ready.then(() => document.fonts.check('14px Inter')))).toBe(true);
|
||||
});
|
||||
|
||||
test.describe('on a phone', () => {
|
||||
test.use({ viewport: { width: 390, height: 844 }, hasTouch: true, isMobile: true });
|
||||
|
||||
test('a downloaded file can be deleted, from above the show notes', async ({ page }) => {
|
||||
await page.locator('#burger').click();
|
||||
await page.locator('.feed', { hasText: 'Test Show' }).click();
|
||||
await page.locator('.tabs button', { hasText: 'Downloaded' }).first().click();
|
||||
await page.locator('.ep').first().click();
|
||||
const del = page.locator('#detail [data-a="del"]');
|
||||
await expect(del).toBeInViewport();
|
||||
// Below a long set of notes it was screens down and looked missing (issue #21).
|
||||
expect(await page.locator('#detail').evaluate(d =>
|
||||
!!(d.querySelector('.encbox').compareDocumentPosition(d.querySelector('.dbody')) & Node.DOCUMENT_POSITION_FOLLOWING)))
|
||||
.toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user