mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 05:36:17 -08:00
fix(epg): keep the import panel free of horizontal scrolling (#1599)
This commit is contained in:
1 parent
17b8aa309d
commit
d9c8ba4d0b
26 files changed
+280
-40
No files matched your search
@@ -334,6 +334,25 @@ test.describe('Electron EPG', () => {
|
||||
.first()
|
||||
).toBeVisible();
|
||||
|
||||
// The row must fit the 300px panel: Material icon buttons carry a
|
||||
// 48px touch target that used to poke past the row padding and
|
||||
// turn into a horizontal scrollbar.
|
||||
const importsList = app.mainWindow.locator(
|
||||
'.epg-progress-panel .imports-list'
|
||||
);
|
||||
await expect
|
||||
.poll(() =>
|
||||
importsList.evaluate(
|
||||
(element) => element.scrollWidth - element.clientWidth
|
||||
)
|
||||
)
|
||||
.toBe(0);
|
||||
await expect(
|
||||
app.mainWindow.locator('.epg-progress-panel .item-url')
|
||||
).toHaveText(
|
||||
`${new URL(epgServer.resourceUrl).hostname}/guide.xml`
|
||||
);
|
||||
|
||||
await saveSettings(app.mainWindow);
|
||||
|
||||
await app.mainWindow
|
||||
|
||||
Reference in new issue
Block a user