Documents — Regression Test
Steps
-
Click New page in the sidebar. If a menu opens (the
databasesflag is on), choose New page.- An Untitled document is created in the sidebar
- The new document opens with its title ready to edit
-
Click the document icon button and pick an emoji.
- The chosen emoji is set as the document icon
-
Add some content, then favorite the document (star).
- A Favorites section appears in the sidebar listing the document
-
Hover the document in the sidebar and click + (Create sub-document).
- The sub-document appears nested under its parent
-
Drag the sub-document to a different position in the tree.
- The order updates and the move sticks
-
Where the
app_searchflag is on, search for the document by part of its title. Skip this step on production, where search is off.- The matching document is found; clicking the result navigates to it
-
Hover the document in the sidebar, open ⋯ (Document options), and choose Delete. Then open Trash and click Restore.
- Deleting moves it to Trash, which shows "Items in Trash are automatically deleted after 30 days."
- Restoring returns it to the main tree
-
Duplicate a document that contains an image:
- Paste or upload an image into the document and wait for it to render.
- Hover that document in the sidebar, open ⋯ (Document options), and choose Duplicate.
- Delete the original and permanently delete it from Trash.
- Reload the app and open the copy.
- The copy opened with the same title and content when it was created
- After the original is gone and the app reloaded, the copy still shows the image — not a broken or blank image box
Variations
- Reload/restart the app and open the surviving copy from step 8.
- Its title, icon, and nesting persist
- Permanently delete a document from Trash.
- A confirmation warns it cannot be undone; after confirming it is gone
Automatic sync and version history
Use a disposable document and the same account on desktop and web. Run on a build containing PR #1185 and the history access improvements in PR #1181.
- Create a document with a distinctive title and paragraph. Wait for saving to finish, then open
it on the second client.
- The title and paragraph match without copying them manually
- Replace the paragraph on the second client, wait for saving to finish, then return to the first.
- The first client receives the new text
- Click the last-edited time above the document and select an earlier saved version.
- History lists versions; Changes describes the selected version's changes
- Document shows a read-only preview; opening it does not replace the live document
- Choose Restore this version, then close history and reopen the document on both clients.
- The earlier content is restored on both clients
- History contains a new version for the restore; later versions remain available
Grouped saves and concurrent editing
Run on clients and a backend containing PR #1249, #1257, and #1258. Use disposable content; this is a conflict-recovery check, not a shared live editing session.
- In one app window, append a word, wait for saving, then append another within
30 seconds. Open history before five minutes have passed since the first edit.
- These quick saves share one displayed version number
- Close history, leave the document unchanged for more than 30 seconds, then append
another word and wait for saving. Open history again.
- A new version appears; its number agrees in the list, Changes, and Document preview
- Open the same document on desktop and web. Disconnect desktop from the network
and edit one paragraph there. On web, edit a different paragraph and wait for saving.
Reconnect desktop, wait for sync, then reopen the document on both clients.
- Both paragraph edits survive and both clients agree
- Repeat with different text in the same paragraph on both clients. After reconnecting,
open history on desktop and inspect the saved versions.
- The active desktop draft is kept; the other text remains recoverable in history
- A New version notice appears for the conflicting update; opening history clears it
Print
Desktop or web only; the phone app has no Print. Run on a build containing PR #1282 and PR #1378.
- Open a document with some text, click More actions (⋯) in its header, and choose Print.
- A Print dialog opens with a preview, a Size choice (Normal / Concise), and a Print button
- Changing Size updates the preview; the pages show "Printed from habitatzero.ai"
- Click Print.
- Desktop shows the system print dialog for the previewed pages; web opens the browser's print preview
- Open a meeting note that has a summary, then choose More actions → Print.
- Include lists the note's sections (for example Summary and Transcript); unticking one removes it from the preview