mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
15 lines
466 B
TypeScript
15 lines
466 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('basic test', async ({ page }) => {
|
|
await page.goto('/');
|
|
|
|
// Basic checks
|
|
expect(await page.title()).toBe('IPTVnator');
|
|
|
|
// Upload playlist test
|
|
await page.getByTestId('add-playlist').click();
|
|
await page.click('"Add via file upload"');
|
|
await page.setInputFiles('input[type="file"]', './e2e/fixtures/test.m3u');
|
|
await expect(page.getByTestId('channel-item')).toHaveCount(4);
|
|
});
|