Commit Graph

2 Commits

Author SHA1 Message Date
Denis Defolie df2c9b8933 Add make test-ui: Chromium flows against the real isolated server
New tests/test_ui_flows.py drives headless Chromium through the Media tab
(folders, breadcrumbs, filters, search, opening a hostile file name),
launchers (real launches of a command, a .desktop and a web launcher, live
grid updates) and the /admin page (edit, add, reorder, delete, file
openers used when opening a file). Any uncaught JavaScript exception fails
the test. Four UI mutations were checked to fail their test.

The driver now launches Chromium without any D-Bus session (a first
attempt let it activate real services on the test bus) and records
JavaScript exceptions. wait_for retries while the page is loading, which
fixes a race in test_ui_text_button; the older UI tests register their
cleanups before setup can fail, so a failed setup no longer leaks a
Chromium process.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 16:42:52 +01:00
Denis 2fdb8f4ea0 Explain a greyed "Keyboard" button: show the reason on tap and log it
On a fresh install features.text_input is false, so the Keyboard button of the
Remote tab was greyed out, with the reason only in a title tooltip that cannot
be read on a tablet.

- The button now uses aria-disabled instead of disabled (same look); tapping
  it shows the reason in a toast instead of doing nothing.
- The server logs "text entry enabled" or "text entry unavailable: <reason>"
  at startup.
- README (fr/en): text entry is listed as optional and off by default in the
  installation steps, and the possible reasons are documented.

tests/test_ui_text_button.py (real Chromium) and a startup-log test in
tests/test_text.py cover it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 19:05:39 +01:00