Integration test: default announce list changed

This commit is contained in:
DC
2016-09-21 13:06:35 -07:00
parent 82c49b5fc5
commit 8e66f641ce
4 changed files with 33 additions and 5 deletions

View File

@@ -16,12 +16,13 @@ test('audio-streaming', function (t) {
// Pause. Skip to two seconds in. Wait another two seconds for it to load.
.then(() => app.webContents.executeJavaScript('dispatch("playPause")'))
.then(() => app.webContents.executeJavaScript('dispatch("skipTo", 2)'))
.then(() => setup.wait())
.then(() => app.client.waitUntilTextExists('.player', 'Beastie Boys'))
.then(() => app.client.waitUntilTextExists('.player', 'Beastie Boys', 10e3))
.then(() => setup.wait(5e3))
.then(() => setup.screenshotCreateOrCompare(app, t, 'play-torrent-wired'))
// Click next
.then(() => app.client.click('.skip-next'))
.then(() => app.client.waitUntilTextExists('.player', 'David Byrne'))
.then(() => setup.wait(5e3))
.then(() => app.client.moveToObject('.letterbox'))
.then(() => app.webContents.executeJavaScript('dispatch("playPause")'))
.then(() => app.webContents.executeJavaScript('dispatch("skipTo", 2)'))
@@ -30,7 +31,8 @@ test('audio-streaming', function (t) {
.then(() => app.webContents.executeJavaScript('dispatch("skipTo", 206)'))
.then(() => app.webContents.executeJavaScript('dispatch("playPause")'))
// Play past the end of the song, then pause after the start of the next song by Zap Mama
.then(() => app.client.waitUntilTextExists('.player', 'Zap Mama', 15e3))
.then(() => app.client.waitUntilTextExists('.player', 'Zap Mama'), 15e3)
.then(() => setup.wait(5e3))
.then(() => app.webContents.executeJavaScript('dispatch("playPause")'))
.then(() => app.webContents.executeJavaScript('dispatch("skipTo", 2)'))
.then(() => setup.screenshotCreateOrCompare(app, t, 'play-torrent-wired-3'))