Skip to content

Commit

Permalink
test(blocks): use FileChooser to set input files
Browse files Browse the repository at this point in the history
  • Loading branch information
shvixxl committed May 13, 2024
1 parent 10a4581 commit 22aed06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/attachment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ function getAttachment(page: Page) {
await type(page, 'file', 100);
await expect(slashMenu).toBeVisible();

const fileChooser = page.waitForEvent('filechooser');
await pressEnter(page);
await page.setInputFiles("input[type='file']", FILE_PATH);
await (await fileChooser).setFiles(FILE_PATH);

// Try to break the undo redo test
await captureHistory(page);

Expand Down

0 comments on commit 22aed06

Please sign in to comment.