Skip to content

test: add smoke tests for the installed Linux app - #226

Open
rikled wants to merge 2 commits into
mainfrom
test/smoke-e2e
Open

rikled wants to merge 2 commits into
mainfrom
test/smoke-e2e

Conversation

@rikled

@rikled rikled commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Adds tests/smoke: installs the Linux .deb on a minimal Ubuntu 24.04 (only the package's own dependencies), starts the app under Xvfb and drives it over CDP. Each test uses a fresh app instance with an empty profile:

  • start page finishes loading; a new document, spreadsheet and presentation can be created from it, and the document typed into
  • docx, odt, xlsx and pptx open, are edited (text, cell, new slide) and saved; the file on disk has the change in its own format; lock file exists while open
  • the same for a path with spaces and non-ASCII characters
  • launching the app again with a file hands it to the running instance
  • an opened file is listed under recent files after a restart and reopens from there
  • SIGTERM exits with code 0 and removes the lock file

The new smoke-linux job in build.yml runs them on every build, including PRs, after build-linux, for both brands on amd64 and arm64. Each job uploads smoke-results-<brand>-<arch> with a screenshot and app log per test. It doesn't gate the release jobs.

This will fail until the package dependencies are fixed. Current main packages (both brands) don't start on a clean Ubuntu: libatomic.so.1 (new with V8 14.6), libEGL.so.1, libxcb-icccm.so.4, libxcb-keysyms.so.1 and libxcb-shape.so.0 aren't declared in desktop-apps/package/deb/template/control.m4. With libatomic1 libegl1 libxcb-icccm4 libxcb-keysyms1 libxcb-shape0 installed manually, all 12 tests pass against the run 42078771605 packages for both brands (~75 s per run, amd64 checked locally).

Playwright/Puppeteer can't attach to CEF (no target discovery), so it uses chrome-remote-interface.

AI-assisted: Claude Code (claude-opus-5-5).

🤖 Generated with Claude Code

tests/smoke installs a .deb on a minimal Ubuntu 24.04 with only the
package's own dependencies, starts the app under Xvfb and drives it over
the Chrome DevTools Protocol, each test with a fresh app instance and an
empty profile:

- the start page loads; a document, spreadsheet and presentation can be
  created from it, and the document typed into
- a docx, odt, xlsx and pptx open, are edited and saved, and the file on
  disk has the change in its own format; a lock file exists while open
- the same for a path with spaces and non-ASCII characters
- a second launch hands its file to the running instance
- an opened file is listed under recent files after a restart and
  reopens from there
- SIGTERM exits with code 0 and removes the lock file

CEF doesn't expose its pages through DevTools target discovery, so
Playwright and Puppeteer can't attach; chrome-remote-interface connects
to each page's websocket instead.

The smoke-linux job in the build workflow runs them on every build,
including PRs, against each .deb from build-linux and uploads
screenshots and app output.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant