feat: implement Drag-n-Drop for templates (#1791)

This commit is contained in:
Catalin Pit
2025-08-07 08:37:55 +03:00
committed by GitHub
parent 86c133ae84
commit 803edf5b16
3 changed files with 174 additions and 40 deletions

View File

@ -379,10 +379,11 @@ test('[TEAMS]: can create a template inside a template folder', async ({ page })
.filter({ hasText: /^Upload Template DocumentDrag & drop your PDF here\.$/ })
.nth(2)
.click();
await page.locator('input[type="file"]').waitFor({ state: 'attached' });
await page.locator('input[type="file"]').nth(0).waitFor({ state: 'attached' });
await page
.locator('input[type="file"]')
.nth(0)
.setInputFiles(path.join(__dirname, '../../../assets/documenso-supporter-pledge.pdf'));
await page.waitForTimeout(3000);