fix: broken merge in team-account-folders E2E test

The merge of main into feat/document-file-conversion silently produced a
bad hybrid for 'can create a template inside a template folder': main
(#2303) replaced the click+setInputFiles flow with fileChooser.setFiles,
while this branch only touched .nth(0) within that same block. Git kept
both, leaving an obsolete click on 'Upload Template Document'. Apply
main's final form.
This commit is contained in:
ephraimduncan
2026-04-20 10:48:49 +00:00
parent f9cb8d84ed
commit f153a7c437
@@ -405,12 +405,9 @@ test('[TEAMS]: can create a template inside a template folder', async ({ page })
page.getByRole('button', { name: 'Template (Legacy)' }).click(),
]);
await page.getByText('Upload Template Document').click();
await page
.locator('input[type="file"]')
.first()
.setInputFiles(path.join(__dirname, '../../../assets/documenso-supporter-pledge.pdf'));
await fileChooser.setFiles(
path.join(__dirname, '../../../assets/documenso-supporter-pledge.pdf'),
);
await page.waitForTimeout(3000);