oxedyne/daimond/dev/shot_release.mjs
730 bytes, 1 run
created by r2519314175:189, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | // shot_release.mjs — the version row, and the history it opens. |
| 2 | import { open, shot, signInAs, errors } from './harness.mjs'; |
| 3 | const s = await open({ name: 'release-shot2', connect: false }); |
| 4 | const p = s.page; |
| 5 | await p.waitForTimeout(3000); |
| 6 | await shot(s, 'rel-1-strip'); |
| 7 | await p.evaluate(() => { |
| 8 | const r = document.getElementById('astat-release'); |
| 9 | r.scrollIntoView({ block: 'center' }); |
| 10 | r.click(); |
| 11 | }); |
| 12 | await p.waitForTimeout(1200); |
| 13 | await shot(s, 'rel-2-history'); |
| 14 | console.log('row text:', await p.$eval('#astat-release', e => e.textContent.trim())); |
| 15 | console.log('rows:', await p.$$eval('.rel-row', e => e.length)); |
| 16 | console.log('errors:', JSON.stringify(errors(s).filter(x => !/502|Failed to load/.test(x)))); |
| 17 | await s.close(); |