mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 14:16:16 -08:00
fix(ui): restore channel and detail keyboard scrolling (#1542)
* fix(ui): restore channel and detail keyboard scrolling * test(ui): drag below the Windows scrollbar arrow
This commit is contained in:
1 parent
0ba5107561
commit
eb602db5fc
44 files changed
+950
-49
No files matched your search
@@ -480,10 +480,22 @@ test('@stalker ITV playback survives a category switch', async ({ page }) => {
|
||||
const sidebarTitle = sidebar.locator('.category-title');
|
||||
const channels = page.locator('[data-test-id="channel-item"]');
|
||||
await expect(channels.first()).toBeVisible({ timeout: 20_000 });
|
||||
const scrollPane = sidebar.locator('#live-channels');
|
||||
await categories.nth(1).focus();
|
||||
await page.keyboard.press('ArrowRight');
|
||||
await expect(scrollPane).toBeFocused();
|
||||
await page.keyboard.press('ArrowLeft');
|
||||
await expect(categories.nth(1)).toBeFocused();
|
||||
const firstCategoryTitle = (await sidebarTitle.textContent())?.trim() ?? '';
|
||||
expect(firstCategoryTitle).not.toBe('');
|
||||
|
||||
await channels.first().click();
|
||||
await expect(scrollPane).toBeFocused();
|
||||
await page.keyboard.press('PageDown');
|
||||
await expect
|
||||
.poll(() => scrollPane.evaluate((el) => el.scrollTop))
|
||||
.toBeGreaterThan(0);
|
||||
|
||||
await expect(channels.first()).toHaveClass(/active/, { timeout: 20_000 });
|
||||
const player = page.locator('app-web-player-view');
|
||||
await expect(player).toBeVisible({ timeout: 20_000 });
|
||||
|
||||
Reference in new issue
Block a user