Oregami
Repositories/oxedyne/daimond

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.
2import { open, shot, signInAs, errors } from './harness.mjs';
3const s = await open({ name: 'release-shot2', connect: false });
4const p = s.page;
5await p.waitForTimeout(3000);
6await shot(s, 'rel-1-strip');
7await p.evaluate(() => {
8 const r = document.getElementById('astat-release');
9 r.scrollIntoView({ block: 'center' });
10 r.click();
11});
12await p.waitForTimeout(1200);
13await shot(s, 'rel-2-history');
14console.log('row text:', await p.$eval('#astat-release', e => e.textContent.trim()));
15console.log('rows:', await p.$$eval('.rel-row', e => e.length));
16console.log('errors:', JSON.stringify(errors(s).filter(x => !/502|Failed to load/.test(x))));
17await s.close();