mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 02:46:16 -08:00
refactor(e2e): update dialog interactions for playlist addition in tests
Entire-Checkpoint: 84693b066142
This commit is contained in:
1 parent
69bf106999
commit
cf311ddf6f
3 files changed
+6
-5
No files matched your search
@@ -11,7 +11,8 @@ test('basic test', async ({ page }) => {
|
||||
|
||||
// Upload playlist test
|
||||
await page.getByRole('button', { name: 'Add playlist' }).click();
|
||||
await page.getByRole('menuitem', { name: 'Add via file upload' }).click();
|
||||
const dialog = page.locator('mat-dialog-container');
|
||||
await dialog.getByRole('button', { name: 'Add via file upload' }).click();
|
||||
await page.setInputFiles('input[type="file"]', fixturePath);
|
||||
await page.waitForURL(/\/workspace\/playlists\/.+\/all$/);
|
||||
await expect(page.getByText('test.m3u')).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user