Integration test: screenshot timing

This commit is contained in:
DC
2016-09-20 14:35:23 -07:00
parent 3a286ae978
commit 7bf51b11ee
7 changed files with 5 additions and 23 deletions

View File

@@ -28,7 +28,6 @@ test('add-torrent', function (t) {
.then(() => app.electron.ipcRenderer.send('openTorrentFile'))
.then(() => app.client.waitUntilTextExists('.torrent-list', 'm3.jpg'))
.then(() => app.client.moveToObject('.torrent'))
.then(() => setup.wait())
.then(() => setup.screenshotCreateOrCompare(app, t, 'add-torrent-100-percent'))
.then(() => setup.endTest(app, t),
(err) => setup.endTest(app, t, err || 'error'))
@@ -55,6 +54,7 @@ test('create-torrent', function (t) {
// Click OK to create the torrent
.then(() => app.client.click('.control.create-torrent'))
.then(() => app.client.waitUntilTextExists('.torrent-list', 'tmp.jpg'))
.then(() => app.client.moveToObject('.torrent'))
.then(() => setup.screenshotCreateOrCompare(app, t, 'create-torrent-100-percent'))
// Click "Save Torrent File As..." on the new torrent
.then(() => app.webContents.executeJavaScript(