ui: green Send buttons, TP status below the buttons

- TERMINAL PROFILE: the status line moves out of the button row (its own
  line under Send/Configure; tpStatusMsg keeps the top margin on every
  update) and the Send button turns emerald
- STATUS and Polling: Send STATUS turns emerald as well
- html guard test for the green buttons and the status placement;
  SW cache simple-v195
This commit is contained in:
2026-09-19 23:10:41 +03:00
parent bc5d46eccb
commit 8848df1c1e
3 changed files with 14 additions and 5 deletions
+9
View File
@@ -217,6 +217,15 @@ test('phone simulator has the network-simulation fieldset', () => {
assert.match(html, /data-needs="card" onclick="netSimRun\('service_lost'\)"/);
});
test('phone simulator action buttons are green and the TP status sits below them', () => {
assert.match(html, /id="tp-send-btn"[^>]*bg-emerald-600/);
assert.match(html, /id="pli-status-btn"[^>]*bg-emerald-600/);
// #tp-status is outside the button row (the row's </div> comes after
// the last button and before the status element)
const block = html.slice(html.indexOf('id="tp-send-btn"'), html.indexOf('id="tp-status"'));
assert.ok(block.lastIndexOf('</div>') > block.lastIndexOf('</button>'));
});
test('SCP81 listener exposes its four modes with the matching notes', () => {
for (const v of ['tls', 'redirect', 'passthru', 'dump']) {
assert.ok(html.includes('value="' + v + '"'), v);