disabled frontend tests in ci

frontend tests are failing in puppeteer but work in the
browsers.
This commit is contained in:
Danny Coates 2018-07-23 09:49:16 -07:00
parent 38fd349d9b
commit 7673715c65
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
7 changed files with 223 additions and 94 deletions

View file

@ -19,6 +19,9 @@ async function decryptStream(request) {
try {
const file = map.get(id);
const keychain = new Keychain(file.key, file.nonce);
if (file.requiresPassword) {
keychain.setPassword(file.password, file.url);
}
file.download = downloadStream(id, keychain);
@ -65,15 +68,14 @@ self.onmessage = event => {
key: event.data.key,
nonce: event.data.nonce,
filename: event.data.filename,
requiresPassword: event.data.requiresPassword,
password: event.data.password,
url: event.data.url,
type: event.data.type,
size: event.data.size,
progress: 0,
cancelled: false
};
if (event.data.requiresPassword) {
info.password = event.data.password;
info.url = event.data.url;
}
map.set(event.data.id, info);
event.ports[0].postMessage('file info received');