fix(tests): fix tests on new version
This commit is contained in:
@ -6,6 +6,7 @@ const startApplication = function() {
|
||||
this.app = new Application({
|
||||
path: electron,
|
||||
args: ["."],
|
||||
chromeDriverArgs: ['remote-debugging-port=' + Math.floor(Math.random() * (9999 - 9000) + 9000)],
|
||||
startTimeout: 30000,
|
||||
waitTimeout: 30000,
|
||||
quitTimeout: 15000
|
||||
|
@ -56,6 +56,8 @@ describe("download", function() {
|
||||
await app.client.waitUntil(async () => {
|
||||
return (await app.client.getText('.torrentRow .progressDownloading')) === '100.0%'
|
||||
}, 60000, 'expected that download will be finished', 200)
|
||||
// There is some time before button will be replaced
|
||||
await asyncWait(800);
|
||||
|
||||
// Check Buttons After finish
|
||||
assert(!(await app.client.isExisting('.torrentRow .deleteDownloadBeforeFinish')));
|
||||
|
Reference in New Issue
Block a user