From e9a9ead76264e314dfa15ab2332c98c63a9f5a4d Mon Sep 17 00:00:00 2001 From: Dhyey Thakore Date: Wed, 9 Jan 2019 19:32:11 +0530 Subject: [PATCH] [Integration-Test] Add test for number of downloads, fixes #810 --- app/ui/expiryOptions.js | 6 ++++-- app/ui/selectbox.js | 3 ++- test/integration/download-tests.js | 23 +++++++++++++++++++++ test/integration/pages/desktop/home_page.js | 2 ++ 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/app/ui/expiryOptions.js b/app/ui/expiryOptions.js index b301e600..0a3268a6 100644 --- a/app/ui/expiryOptions.js +++ b/app/ui/expiryOptions.js @@ -42,7 +42,8 @@ module.exports = function(state, emit) { } state.downloadCount = value; emit('render'); - } + }, + 'expire-after-dl-count-dropdown' ), dlCountSelect ); @@ -68,7 +69,8 @@ module.exports = function(state, emit) { } state.timeLimit = value; emit('render'); - } + }, + 'expire-after-time-dropdown' ), timeSelect ); diff --git a/app/ui/selectbox.js b/app/ui/selectbox.js index e1f7a040..3f66496b 100644 --- a/app/ui/selectbox.js +++ b/app/ui/selectbox.js @@ -1,10 +1,11 @@ const html = require('choo/html'); -module.exports = function(selected, options, translate, changed) { +module.exports = function(selected, options, translate, changed, htmlId) { let x = selected; return html`