fix(gui): fix inresaction of search panel with other elements #102
This commit is contained in:
parent
40e7aaa2db
commit
aafc245688
@ -29,7 +29,7 @@ export default class AdvancedSearchControl extends Component {
|
|||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className='column w100p' style={{maxWidth: 750, overflow: 'hidden', padding: '0px 18px 15px', background: 'white', borderRadius: 3}}>
|
<div className='column w100p' style={{position: 'absolute', top: '70px', zIndex: 3, boxShadow: '0 0 10px rgba(0,0,0,0.5)', maxWidth: 750, overflow: 'hidden', padding: '0px 18px 15px', background: 'white', borderRadius: 3}}>
|
||||||
<SelectField
|
<SelectField
|
||||||
floatingLabelText={__('Filter content type')}
|
floatingLabelText={__('Filter content type')}
|
||||||
value={this.state.type}
|
value={this.state.type}
|
||||||
|
@ -256,7 +256,7 @@ class Search extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="column w100p center">
|
<div className="column w100p center" style={{position: 'relative'}}>
|
||||||
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: this.searchError ? 17 : 0, margin: 5, borderRadius: 3}}>
|
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: this.searchError ? 17 : 0, margin: 5, borderRadius: 3}}>
|
||||||
{
|
{
|
||||||
((this.searchTorrents && this.searchTorrents.length > 0) || (this.searchFiles && this.searchFiles.length > 0))
|
((this.searchTorrents && this.searchTorrents.length > 0) || (this.searchFiles && this.searchFiles.length > 0))
|
||||||
|
@ -45,6 +45,7 @@ describe("download", function() {
|
|||||||
await app.client.waitForExist('.downloads-list .torrentRow .torrentName')
|
await app.client.waitForExist('.downloads-list .torrentRow .torrentName')
|
||||||
const value = await app.client.$('.downloads-list .torrentRow .torrentName').getText()
|
const value = await app.client.$('.downloads-list .torrentRow .torrentName').getText()
|
||||||
assert.equal(value, 'Roblox_setup.exe')
|
assert.equal(value, 'Roblox_setup.exe')
|
||||||
|
console.log('download progress', await app.client.getText('.torrentRow .progressDownloading'));
|
||||||
// cancel in progress button must be exists
|
// cancel in progress button must be exists
|
||||||
assert(await app.client.isExisting('.torrentRow .deleteDownloadBeforeFinish'));
|
assert(await app.client.isExisting('.torrentRow .deleteDownloadBeforeFinish'));
|
||||||
assert(await app.client.isExisting('.torrentRow .pauseTorrent'));
|
assert(await app.client.isExisting('.torrentRow .pauseTorrent'));
|
||||||
@ -57,6 +58,7 @@ describe("download", function() {
|
|||||||
this.timeout(90000);
|
this.timeout(90000);
|
||||||
const { app } = this
|
const { app } = this
|
||||||
await app.client.waitForExist('.torrentRow .progressDownloading')
|
await app.client.waitForExist('.torrentRow .progressDownloading')
|
||||||
|
console.log('download progress', await app.client.getText('.torrentRow .progressDownloading'));
|
||||||
await app.client.waitUntil(async () => {
|
await app.client.waitUntil(async () => {
|
||||||
return (await app.client.getText('.torrentRow .progressDownloading')) === '100.0%'
|
return (await app.client.getText('.torrentRow .progressDownloading')) === '100.0%'
|
||||||
}, 60000, 'expected that download will be finished', 200)
|
}, 60000, 'expected that download will be finished', 200)
|
||||||
|
Loading…
Reference in New Issue
Block a user