test(downloading): add downloading tab & some buttons tests
This commit is contained in:
@ -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
|
||||
|
@ -216,6 +216,7 @@ class Header extends React.Component {
|
||||
/>
|
||||
<RaisedButton
|
||||
label={__('Downloads')}
|
||||
id='downloadTab'
|
||||
onClick={() => {
|
||||
window.router('/downloads')
|
||||
}}
|
||||
|
@ -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}
|
||||
|
@ -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>
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user