refactor(e2e): update dialog interactions for playlist addition in tests

Entire-Checkpoint: 84693b066142
This commit is contained in:
4gray committed 2026-03-29 15:28:02 +02:00
1 parent 69bf106999
commit cf311ddf6f
3 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -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();