test(downloading): add downloading tab & some buttons tests

This commit is contained in:
Alexey Kasyanchuk
2018-12-04 01:50:27 +03:00
parent 7277ffba8f
commit 491b99fd08
6 changed files with 49 additions and 8 deletions

View File

@ -43,7 +43,7 @@ export default class TopPage extends Page {
<RaisedButton label={__('Back to main page')} primary={true} onClick={() => {
window.router('/')
}} />
<List style={{paddingBottom: '70px', minWidth: '60%'}} className='animated recent-torrents'>
<List style={{paddingBottom: '70px', minWidth: '60%'}} className='animated recent-torrents downloads-list'>
{
this.downloads.map((torrentDownload, index) => {
const {torrentObject: torrent, ...download} = torrentDownload

View File

@ -216,6 +216,7 @@ class Header extends React.Component {
/>
<RaisedButton
label={__('Downloads')}
id='downloadTab'
onClick={() => {
window.router('/downloads')
}}

View File

@ -32,7 +32,7 @@ export default class SearchPage extends Page {
return (
<div className='column center'>
<div className='torrents-container'>
<div className='torrents-container search-list'>
<SearchResults
torrentsSearchResults={Search.instance().searchTorrents}
filesSearchResults={Search.instance().searchFiles}

View File

@ -264,6 +264,7 @@ class Search extends Component {
<div style={{width: 25, height: 25, margin: 2, marginRight: 8}}>
<Tooltip hint={__('display search results for current search request')}>
<Checkbox
id='open-recent-search'
checked={false}
uncheckedIcon={<svg viewBox="0 0 459 459">
<g>

View File

@ -392,7 +392,7 @@ export default class Torrent extends Component {
&&
<ToolTip hint={__('Pause torrent downloading')} right={true}>
<a href={`magnet:?xt=urn:btih:${torrent.hash}`}>
<svg style={{
<svg className='pauseTorrent' style={{
height: '24px',
marginRight: 16,
fill: this.state.downloadPaused ? '#42f47a' : 'black'