diff --git a/docs/screenshots.mjs b/docs/screenshots.mjs index 07abbae..b62182e 100644 --- a/docs/screenshots.mjs +++ b/docs/screenshots.mjs @@ -203,6 +203,26 @@ try { })()`); await sleep(1800); await shot("compose.jpg"); + + // The recipient picker, taken here because the composer is already open. The + // site claims you can pick recipients by reading the address books rather + // than remembering a name, and this is that claim photographed. Doing it from + // a later step meant navigating back to the mail list, which turned out not + // to be reliable once the run had been through Files. + await evaluate(`(() => { + const b = [...document.querySelectorAll('button')].find(x => x.getAttribute('aria-label') === 'Choose from address books'); + if (b) b.click(); + })()`); + await waitFor("/Choose recipients/.test(document.body.innerText)", "the recipient picker"); + await evaluate(`(() => { + // Two ticked, so the shot shows a selection rather than an empty list. + for (const b of [...document.querySelectorAll('.menu-item input[type=checkbox]')].slice(0, 2)) b.click(); + })()`); + await sleep(1500); + await shot("recipients.jpg"); + await evaluate(`(() => { const c = [...document.querySelectorAll('button')].find(b => b.textContent.trim() === 'Cancel'); if (c) c.click(); })()`); + await sleep(600); + await evaluate(`(() => { const c = [...document.querySelectorAll('button')].find(b => /close|discard/i.test(b.getAttribute('aria-label')||'')); if (c) c.click(); })()`); await sleep(800); diff --git a/docs/screenshots/compose.jpg b/docs/screenshots/compose.jpg index 3533716..4872a99 100644 Binary files a/docs/screenshots/compose.jpg and b/docs/screenshots/compose.jpg differ diff --git a/docs/screenshots/files.jpg b/docs/screenshots/files.jpg index 1c551a9..6901238 100644 Binary files a/docs/screenshots/files.jpg and b/docs/screenshots/files.jpg differ diff --git a/docs/screenshots/inbox-dark.jpg b/docs/screenshots/inbox-dark.jpg index 7e15706..9a4316a 100644 Binary files a/docs/screenshots/inbox-dark.jpg and b/docs/screenshots/inbox-dark.jpg differ diff --git a/docs/screenshots/login.jpg b/docs/screenshots/login.jpg index 15401c0..f323209 100644 Binary files a/docs/screenshots/login.jpg and b/docs/screenshots/login.jpg differ diff --git a/docs/screenshots/recipients.jpg b/docs/screenshots/recipients.jpg new file mode 100644 index 0000000..6728ef0 Binary files /dev/null and b/docs/screenshots/recipients.jpg differ