Files
iptvnator/apps/electron-backend-e2e/src/file-import.e2e.ts
4grayand4gray ef900d0f2a [codex] Add scoped coverage reporting (#1024)
* add scoped coverage reporting

* fix coverage review feedback

---------

Co-authored-by: 4gray <fourgray@proton.me>
2026-06-06 17:41:40 +02:00

28 lines
766 B
TypeScript

import {
closeElectronApp,
expect,
importM3uPlaylistFromNativeDialog,
launchElectronApp,
m3uFixturePath,
test,
} from './electron-test-fixtures';
test.describe('Electron Native Playlist Import', () => {
test('@m3u @electron imports an M3U playlist via the native file picker path', async ({
dataDir,
}) => {
const app = await launchElectronApp(dataDir);
try {
await importM3uPlaylistFromNativeDialog(app, m3uFixturePath);
await app.mainWindow.waitForURL(/\/workspace\/playlists\/.+/);
await expect(
app.mainWindow.getByTestId('channel-item')
).toHaveCount(4);
} finally {
await closeElectronApp(app);
}
});
});