Fix screenshots further
|
Before Width: | Height: | Size: 1011 KiB After Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 479 KiB After Width: | Height: | Size: 511 KiB |
|
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 514 KiB |
|
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 514 KiB |
|
Before Width: | Height: | Size: 480 KiB After Width: | Height: | Size: 514 KiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 481 KiB After Width: | Height: | Size: 515 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 1024 KiB After Width: | Height: | Size: 1.0 MiB |
BIN
test/screenshots/darwin/torrent-list-download.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
BIN
test/screenshots/darwin/torrent-list.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
@@ -40,10 +40,9 @@ test('create-torrent', function (t) {
|
||||
announce: [
|
||||
'udp://explodie.org:6969',
|
||||
'udp://tracker.coppersurfer.tk:6969',
|
||||
'udp://tracker.empire-js.us:1337',
|
||||
'udp://tracker.leechers-paradise.org:6969',
|
||||
'udp://tracker.openbittorrent.com:80',
|
||||
'udp://tracker.opentrackr.org:1337',
|
||||
'udp://zer0day.ch:1337',
|
||||
'wss://tracker.btorrent.xyz',
|
||||
'wss://tracker.fastcast.nz',
|
||||
'wss://tracker.openwebtorrent.com'
|
||||
|
||||
@@ -31,22 +31,20 @@ test('torrent-list: start, stop, and delete torrents', function (t) {
|
||||
const app = setup.createApp()
|
||||
setup.waitForLoad(app, t)
|
||||
.then(() => app.client.waitUntilTextExists('.torrent-list', 'Big Buck Bunny'))
|
||||
// Mouse over the first torrent
|
||||
.then(() => app.client.moveToObject('.torrent'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-hover'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list'))
|
||||
// Click download on the first torrent, start downloading
|
||||
.then(() => app.client.click('.download input'))
|
||||
.then(() => app.client.waitUntilTextExists('.torrent-list', '276 MB'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-start-download'))
|
||||
// Click download on the first torrent again, stop downloading
|
||||
.then(() => app.client.click('.download input'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-hover-download'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-download'))
|
||||
// Click delete on the first torrent
|
||||
.then(() => app.client.click('.icon.delete'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-delete-prompt'))
|
||||
// Click cancel on the resulting confirmation dialog. Should be same as before.
|
||||
.then(() => app.client.click('.control.cancel'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-hover'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list'))
|
||||
// Click delete on the first torrent again
|
||||
.then(() => app.client.click('.icon.delete'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-delete-prompt'))
|
||||
@@ -63,9 +61,6 @@ test('torrent-list: expand torrent, unselect file', function (t) {
|
||||
const app = setup.createApp()
|
||||
setup.waitForLoad(app, t)
|
||||
.then(() => app.client.waitUntilTextExists('.torrent-list', 'Big Buck Bunny'))
|
||||
// Mouse over the torrent
|
||||
.then(() => app.client.moveToObject('#torrent-cosmos'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-cosmos-hover'))
|
||||
// Click on the torrent, expand
|
||||
.then(() => app.client.click('#torrent-cosmos'))
|
||||
.then(() => setup.screenshotCreateOrCompare(app, t, 'torrent-list-cosmos-expand'))
|
||||
|
||||