code: function fixInputChange(input) {
      let files;
      Object.defineProperty(input, 'files', {
          set(v) { files = v; dispatchEvent(input, 'change'); },
          get(v) { return files }
      });
  }
docs: we should trigger change event manually in the newest ChromeHeadless