Skip to main content

Documents — Regression Test

Steps​

  1. Click New page in the sidebar. If a menu opens (the databases flag is on), choose New page.

    • An Untitled document is created in the sidebar
    • The new document opens with its title ready to edit
  2. Click the document icon button and pick an emoji.

    • The chosen emoji is set as the document icon
  3. Add some content, then favorite the document (star).

    • A Favorites section appears in the sidebar listing the document
  4. Hover the document in the sidebar and click + (Create sub-document).

    • The sub-document appears nested under its parent
  5. Drag the sub-document to a different position in the tree.

    • The order updates and the move sticks
  6. Where the app_search flag 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
  7. 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
  8. Duplicate a document that contains an image:

    1. Paste or upload an image into the document and wait for it to render.
    2. Hover that document in the sidebar, open ⋯ (Document options), and choose Duplicate.
    3. Delete the original and permanently delete it from Trash.
    4. 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​

  1. Reload/restart the app and open the surviving copy from step 8.
    • Its title, icon, and nesting persist
  2. 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.

  1. 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
  2. Replace the paragraph on the second client, wait for saving to finish, then return to the first.
    • The first client receives the new text
  3. 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
  4. 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.

  1. 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
  2. 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
  3. 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
  4. 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.

  1. 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"
  2. Click Print.
    • Desktop shows the system print dialog for the previewed pages; web opens the browser's print preview
  3. 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