Skip to content
Repos

DevPlaceApp

Markdown 1.7 KB20 lines Opens in site

Directory Raw Download

Smoke test

Automated: make smoke (runs tools/smoke.sh, headless with SDL_VIDEODRIVER=dummy). It renders every screen id with --mock, runs every script in tests/e2e/ (first line # screen: <id> selects the screen, grammar in src/app/ScriptRunner.hpp) and renders the feed against an unreachable backend. Output PNGs: docs/parity/shots/smoke/.

Manual script (interactive, live backend)

Happy path:

  1. ./build/devplaceapp. The feed loads and shows cards. Scroll with the wheel or drag; pull down at the top to refresh.
  2. Open a post: comments, reactions, poll and attachments render; Esc goes back.
  3. Settings tab: change Appearance to Light and back; toggles persist after restart.
  4. Sign in (Settings, top right): invalid credentials show an error alert; valid credentials close the cover and the Messages and Notifications tabs fill.
  5. Vote, react, comment, create a post (Posts tab, compose button), edit and delete it.
  6. Messages: open a conversation, send a message; it appears on the other side live, typing indicator shows.
  7. Notifications: open one; it routes to the post, conversation or profile. Mark all read clears the badge.
  8. Sign out and delete account (use a throwaway account).

Offline: start with the network disabled (or --base-url http://127.0.0.1:9/). Every screen shows its error state and a retry (reload button, pull to refresh); no crash, no hang. Reconnect and refresh: data appears.

Error cases: wrong password (error alert with server text), timeout (60 s, then the timeout message), server 500 (alert prefixed with the status), bad JSON (generic message), expired token (silent re-login with stored credentials), empty lists (empty states), minimum window size 320x480.

93.3ms