    /* the listening port: typed in, saved, read back off the config — then
       a port below 1024 refused and the saved one left standing */
    { do: `__click('.screen .row', 'Listening port')`, name: "you-port-prompt", wait: 600 },
    { do: `(function () { var i = document.querySelector('.halfsheet .prompt .field'); i.value = '50555'; i.dispatchEvent(new Event('input', { bubbles: true })); })()`, wait: 300 },
    { do: `__click('.halfsheet .prompt-acts .btn-fill', 'Save')`, name: "you-port", wait: 700 },
    { do: `__click('.screen .row', 'Listening port')`, wait: 500 },
    { do: `(function () { var i = document.querySelector('.halfsheet .prompt .field'); i.value = '80'; i.dispatchEvent(new Event('input', { bubbles: true })); })()`, wait: 300 },
    { do: `__click('.halfsheet .prompt-acts .btn-fill', 'Save')`, name: "you-port-refused", wait: 600 },
    { do: `__click('.toast:not(.notice)', null)`, wait: 300 },
    /* the dev flavour's diagnostics — the desktop's Ctrl+Shift+D overlay as
       a screen; a normal build has no row here to tap */
    { do: `__click('.screen .row', 'Diagnostics')`, name: "diag", wait: 1500 },
    { do: `history.back()`, name: "diag-back", wait: 800 },
