fix(tests): fix tests on new version

This commit is contained in:
Alexey Kasyanchuk
2019-10-27 21:33:42 +03:00
parent 8795b3d81c
commit 5ede6935ac
4 changed files with 28 additions and 300 deletions

View File

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

View File

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