From b6213344ce47febe74417584441b7cccb178e0ce Mon Sep 17 00:00:00 2001 From: Frederic Jung Date: Thu, 29 Oct 2026 21:40:19 +0100 Subject: [PATCH] Test the menu's small GitHub and chat links --- tests/report-link.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/report-link.test.js b/tests/report-link.test.js index 0facc87..d1931b5 100644 --- a/tests/report-link.test.js +++ b/tests/report-link.test.js @@ -20,10 +20,11 @@ test('bugs and ideas point to GitHub from the menu and How to play, and the chat } }); -test('the GitHub card fits a phone', () => { +test('the GitHub link fits a phone: a small link next to the chat link in the menu', () => { const { ev, errors } = load(); ev("ACT.start({});window.innerWidth=360;ACT.menu()"); assert.ok(ev('isPhone()')); - assert.ok(ev(`!!document.querySelector('#modal a.plug[href="${ISSUES}"] .go')`), 'same card layout as the chat card'); + assert.ok(ev(`!!document.querySelector('#modal .menu-plugs a.mplug[href="${ISSUES}"]')`), 'bug link in the menu'); + assert.ok(ev(`!!document.querySelector('#modal .menu-plugs a.mplug[href="'+SIGNAL+'"]')`), 'chat link beside it'); assert.deepEqual(errors, []); });