mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 02:46:16 -08:00
* add scoped coverage reporting * fix coverage review feedback --------- Co-authored-by: 4gray <fourgray@proton.me>
28 lines
766 B
TypeScript
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);
|
|
}
|
|
});
|
|
});
|