-
Notifications
You must be signed in to change notification settings - Fork 197
Closed
Labels
AREA: clientSTATE: Auto-lockedIssues that were automatically locked by the Lock botIssues that were automatically locked by the Lock botSYSTEM: uploadTYPE: bug
Milestone
Description
Since testcafe v1.1.3 our tests are failing on Linux/Chrome while they are passing on Linux/Firefox or MacOS/Chrome. Manual testing also works fine on Linux/Chrome.
It seems that on Linux/Chrome the change event is fired only for the first call to setFilesToUpload. Any subsequent call to setFilesToUpload (even with a different filePath) don't seem to be firing the change event.
It feels this issue could be related or even was introduced with #1844.
Our frontend code looks like this (Vue.js):
<input
id="file-upload"
ref="file"
class="uploader"
type="file"
accept=".txt"
@change="handleFileUpload"
>
Our test code looks like this:
let files = [
'file1.txt',
'file2.txt',
'file3.txt',
];
for (let i = 0; i < files.length; i += 1) {
await t.setFilesToUpload(Selector('#file-upload'), files[i]);
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AREA: clientSTATE: Auto-lockedIssues that were automatically locked by the Lock botIssues that were automatically locked by the Lock botSYSTEM: uploadTYPE: bug