TestCafè中是否可以使用react-DropZone选择和上传文件?

问题描述 投票:1回答:1

我必须在DropZone中使用TestCafè选择和上传文件。该插件设置为在对话框窗口中选择文件后或在该区域中放置文件后立即开始上传。阅读了TestCafè的“ setFilesUpload”文档后,我这样写:

const fileInput = await Selector('input[type="file"]');
await page.setFilesToUpload( fileInput, './e2efile.pdf');

测试不会崩溃或失败,并且在testcafè中看起来还不错,但是什么都没有真正上传,我错过了什么吗?

testing automated-tests e2e-testing testcafe react-dropzone
1个回答
1
投票

您描述的行为看起来像个错误,所以我建议您在TestCafe GitHub repository中发布一个新问题。

© www.soinside.com 2019 - 2024. All rights reserved.