[Integration-Test] Add test for number of downloads, fixes #810

This commit is contained in:
Dhyey Thakore 2019-01-09 19:32:11 +05:30
parent 1bb1e8123f
commit e9a9ead762
4 changed files with 31 additions and 3 deletions

View file

@ -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
);

View file

@ -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`
<select
id="${htmlId}"
class="appearance-none cursor-pointer border rounded-sm bg-blue-lightest hover:border-blue focus:border-blue px-2 py-1 my-2 h-8"
onchange="${choose}"
>