Joplin Testing: How to Test Your Note-Taking App with testRigor
|
|

Joplin is an open-source note-taking and to-do application for collecting ideas, organizing notebooks, and managing tasks. Its web app lets you work with notes directly in a browser. Joplin testing helps verify that the information people save remains available when they return to it, whether they are keeping meeting notes, tracking research, or managing a personal checklist.
Imagine updating a project note before a meeting, only to find that its previous content returns when you reload the page. Search can also fail to locate a note that is still present in a notebook. For a note-taking application, these problems can be more disruptive than a visual defect because people rely on their saved information.
The examples below focus on the Joplin Web App, which brings the mobile client to the browser. The desktop, native mobile, terminal, and synchronization environments need their own coverage.
What Should Joplin Testing Cover?
Start with the actions that people rely on every day. In particular, prioritize tests that verify saved data rather than simply checking whether an editor opens.
- Creating and editing a note, then reopening it after a browser reload
- Opening the bundled welcome notes on first launch
- Moving a note to Trash and restoring it
- Finding notes by title and body content
- Saving a note without manually entering its title
- Completing to-dos and converting them back to notes
- Checking and unchecking Markdown checklist items
- Assigning, filtering by, and removing tags
- Downloading notes in Markdown and HTML
- Following internal links between notes
If your workflow depends on synchronization, attachments, shared notebooks, or encryption, add separate scenarios for those features. For example, testing a note after reloading one browser is different from verifying that an edit appears on a second device.
What Joplin Already Checks, and What It Does Not
Joplin already has a testing infrastructure. Its contribution guide identifies Jest as the framework for automated code-level tests, including helpers for tests that require a database or synchronizer. In addition, the accessibility documentation describes Playwright tests for the desktop application and React Native Testing Library for mobile components.
The proposed browser suite complements existing Electron and native iOS coverage. In particular, it checks the browser version of the mobile app using rendered controls, browser storage, downloads, and clipboard interactions. A passing desktop test cannot by itself establish that the web client starts correctly or retains a Markdown edit after reloading.
This distinction matters because Joplin Web has browser-specific storage and startup requirements. As a result, a regression may affect the web app while the installed desktop client continues to work.
Unit Testing in Joplin
Unit tests protect individual functions and components. For example, a developer can test a Markdown transformation, title-generation logic, or a search utility with a small set of inputs. These checks make it easier to isolate the cause of a failure before running a longer user journey.
For developers working in the Joplin repository, the contribution guide documents yarn test from the repository root or from an individual package. However, a function that correctly generates a title does not establish that the editor saves it and the note list displays it after a reload.
Integration Testing in Joplin
Integration tests can exercise note models, storage, and synchronization components together. The web app architecture documentation explains that the browser client uses SQLite WASM and the Origin Private File System. In addition, SQLite WASM depends on cross-origin isolation, which the deployment must provide.
For example, an integration test can verify that updating a note writes the expected data to storage. A separate test could check that a deleted note is marked correctly and can be restored. Browser-level tests then verify that those operations are available through the interface and that the expected result appears when the user opens the note again.
End-to-End Joplin Testing
End-to-end testing follows a complete user journey through the application. For Joplin, a useful starting point is to create a note, save it, reload the browser, reopen the note, change its content, and reload again.
Although this sounds like a short sequence, it exercises the note editor, navigation, storage, and rendering together. The final assertion should check the updated text and the absence of the previous text. Otherwise, a test could pass even if the editor displayed stale data.
Several automation tools can exercise these browser workflows. Choose one based on the application surface and the people who will maintain the tests.
testRigor
testRigor lets teams describe actions and assertions in plain English. For example, a tester can write click "New note" or check that page contains stored value from "noteBody". This makes a test easier to review with people who understand how Joplin should behave but do not write browser automation code.
In addition, stored values let you generate a new note title for every execution and reuse it during search, reload, and cleanup. See the testRigor language documentation for the supported commands.
Selenium
Selenium provides programmable browser automation using languages such as Java, Python, and C#. It is useful when a team already maintains coded tests or wants to manage browser interactions directly. In practice, the team also needs to maintain locators, assertions, and test setup as the interface changes.
Playwright
Playwright provides browser automation with tools for managing browser contexts, downloads, and assertions. Its isolated browser contexts are particularly relevant to a local-first app. Joplin already uses Playwright for desktop integration tests; however, testing the web client requires a browser-specific environment. Teams can use either coded browser tests or plain-English scenarios, depending on their needs.
Joplin Testing with testRigor: How to Perform End-to-End Tests
The following walkthrough uses the browser build of Joplin and a fresh English-language Chrome profile. It tests a note through two reloads: first after creation, then after editing. No synchronization account is required for this example.
Set Up a Safe Test Environment
Joplin Web stores notes and attachments in the browser, with optional synchronization. According to its web app documentation, clearing site data can erase unsynchronized notes. Therefore, never use a browser profile containing your real notes or a production synchronization account for these tests.
- A reachable test deployment of Joplin Web, or a local build accessible through the testRigor CLI tunnel
- A fresh browser profile, with English interface labels and the seeded Welcome notebook
- No personal notes, synchronization credentials, or production data
- One execution node, sequential cases, and zero retries to match the example configuration
The example uses an isolated source build, not a public account on Joplin Cloud. If you run against another build or language, confirm the UI labels and startup behavior first. For a private local instance, use the CLI instructions near the end of this article.
Create a testRigor Test Suite
Step 1: Sign in to testRigor.
Step 2: Create a test suite and configure it for Joplin Web.
- Test Suite Name: Joplin Web Regression, or another descriptive name.
- Type of testing: Desktop Web Testing with Chrome (the exported suite type is
WebDesktopChrome). - URL to run test on: Your isolated web app URL. For the local example, the CLI supplies
http://localhost:18088. - Testing credentials: Leave synchronization credentials out of this local-only suite.
- OS and Browser: Ubuntu and Chrome match the example execution environment.
Step 3: Click Create Test Suite. If offered AI-generated cases, skip generation for this walkthrough.
Step 4: Click Add Test Case and enter a descriptive name and the steps. Create the reusable rules described below before using the shortened complete case.
Step 5: Click Add and Run for a reachable test deployment. For the localhost build, launch execution using the CLI tunnel instead.
Test Data for Joplin Testing
Use different note titles and body content on each run. Otherwise, a search or deletion could affect a note left behind by an earlier test. The example uses generated strings and stores them for later assertions. Unlike preconfigured global variables, these values are generated during the case.
| Stored value | Purpose |
|---|---|
noteTitle |
Unique title used to find and remove the test note |
noteBody |
Expected rendered body, updated after an edit |
originalBody |
Original body used in the negative assertion |
editedBody |
New content generated during the edit |
The test also uses the seeded Welcome notebook. For a different deployment, prepare an equivalent disposable notebook and adapt the navigation and cleanup rules.
Test Case: Create, Edit, and Reopen a Note
A strong first regression case checks whether the title and body survive a reload, then repeats the check after an edit. The steps below expand the reusable rules from TC-01 in the source-controlled suite.
Step 1: Open the Note List
A fresh profile initially displays synchronization options. Close the dialog and check for the bundled web app note before proceeding. This provides a more meaningful startup check than waiting for the page to load.

click "Close" check that page contains "0. About the web app"
Step 2: Create a Note with Unique Content
Generate a title and body, then select New note from the Add new menu. In the editor, enter both values and return to the note list.


generate from regex "JoplinE2E[a-z]{12}", and save as "noteTitle"
generate from regex "Savedbody[a-z]{18}", and save as "noteBody"
click "Add new"
click "New note"
enter stored value "noteTitle" into "Add title"
enter stored value "noteBody" into "Markdown editor"
click "Back"
check that page contains stored value from "noteTitle"
click stored value "noteTitle"
check that page contains stored value from "noteBody"
Step 3: Reload the Browser and Reopen the Note
In the tested build, reloading returns the app to All notes. Consequently, the test opens the note again by its generated title and checks the rendered body.
click "Back" reload check that page contains stored value from "noteTitle" click stored value "noteTitle" check that page contains stored value from "noteBody"

Step 4: Edit the Body and Verify Persistence Again
Keep a copy of the original text before replacing it. Once the new body appears in the viewer, update the expected stored value and repeat the reload sequence.
save stored value "noteBody" as "originalBody"
click "Edit"
generate from regex "Editedbody[a-z]{18}", and save as "editedBody"
enter stored value "editedBody" into "Markdown editor"
click "Stop editing"
check that page contains stored value from "editedBody"
save stored value "editedBody" as "noteBody"
click "Back"
reload
check that page contains stored value from "noteTitle"
click stored value "noteTitle"
check that page contains stored value from "noteBody"
check that page doesn't contain stored value from "originalBody"

This checks persistence across page reloads in the same browser profile. It does not establish recovery after clearing site data or synchronization to another device.
Step 5: Remove Only the Generated Note
Finally, call the cleanup rule to move the test note to Trash, verify its body, and permanently delete that specific record. Before confirming deletion, the rule checks the title in the dialog. It then reloads and checks that the note is absent from All notes and the Welcome notebook.

web-remove-test-note
Do not empty the entire Trash as part of this test. Even in a dedicated environment, scoped deletion makes it easier to investigate unexpected records left by earlier executions.
Complete Test Case
web-start-notes
web-create-test-note
web-reload-test-note
save stored value "noteBody" as "originalBody"
click "Edit"
generate from regex "Editedbody[a-z]{18}", and save as "editedBody"
enter stored value "editedBody" into "Markdown editor"
click "Stop editing"
check that page contains stored value from "editedBody"
save stored value "editedBody" as "noteBody"
web-reload-test-note
check that page doesn't contain stored value from "originalBody"
web-remove-test-note
The complete definitions, including all five rules, are available in the example pull request and its E2E README. Import the YAML definitions or reproduce their steps in the testRigor editor before running the shortened case.
Execution Results
The public Joplin testing suite contains ten browser cases. In the example execution records, all ten passed in a GitHub Actions-backed Chrome run, including note persistence, trash restoration, search, to-dos, checklists, tagging, exports, and internal links. For CI details, see the corresponding fork workflow run linked from the contribution.
The result applies to the tested source revision and browser environment. However, the proposed branch was subsequently rebased onto newer upstream source; that newer base has not been rerun in the cloud. The tests also do not cover synchronization, encryption, native clients, or a published-release comparison.
When an execution fails, inspect its first failed assertion and the associated screenshot. For example, if the note list opens after reload but the expected body is absent, examine the navigation and editor steps before changing the test. Reports and logs help distinguish a missing note from an incorrect UI reference or a startup failure.
testRigor Capabilities for Joplin Testing
- Reusable Rules: Define the startup, note creation, reload, and cleanup sequences once. See Reusable Rules.
- Generated test data: Create distinct note titles, bodies, and tags, then reuse stored values in assertions.
- File testing: Verify that exported Markdown and HTML files arrive and contain the expected data. See file commands.
- Clipboard testing: Capture an internal Markdown link and insert it into another note, as the link scenario demonstrates.
- Localhost testing: Use the testRigor CLI to reach a local web build without deploying it publicly.
High-Value Joplin Testing Scenarios
The note lifecycle case is a good starting point. However, users also need to find, organize, recover, and export what they write. These additional scenarios come from the same ten-case suite. The snippets are excerpts unless a complete case is identified; they assume the shared rules and the states described in the surrounding text.
1. Verify the First Launch
click "Close" click "1. Welcome to Joplin!" check that page contains "The notes in this notebook give an overview of what Joplin can do" check that page contains "Markdown format"
This provides evidence that the interface has loaded and the bundled note is readable. It is also useful before longer write scenarios, although it does not independently verify every service-worker or storage operation.
2. Restore a Note from Trash
A deleted note may still contain information that a user needs. TC-03 creates a disposable note, moves it to Trash, verifies its contents there, and restores it to the Welcome notebook.
web-start-notes web-create-test-note web-open-test-note-in-trash click "Actions" click "Restore" click "Sidebar" click "Welcome!" check that page contains stored value from "noteTitle" click stored value "noteTitle" web-reload-test-note web-remove-test-note
The reload rule checks the body again, so the test verifies that restoration preserved the expected content rather than just returning a title to the list.
3. Find Notes by Title and Body
Search is particularly important when a notebook contains many entries. TC-04 creates a note with a distinctive body token, then uses that token to find the saved title. It also searches for an unrelated generated term.
click "Back"
click "Search"
enter stored value "noteBody" into "Search notes, notebooks..."
check that page contains stored value from "noteTitle"
generate from regex "Nomatch[a-z]{18}", and save as "missingQuery"
enter stored value "missingQuery" into "Search notes, notebooks..."
check that page doesn't contain stored value from "noteTitle"
enter stored value "noteTitle" into "Search notes, notebooks..."
check that page contains stored value from "noteTitle"
click stored value "noteTitle"
check that page contains stored value from "noteBody"
The negative assertion checks that the target note does not appear for the unrelated query; it does not assert that the entire result list is empty. The full case uses Reveal in notebook before cleanup.
4. Verify Automatic Note Titles
People often start writing without choosing a title. In TC-05, the generated body consists of a single token. The expected automatic title is that same token, so the test can locate the note without typing into Add title.
web-start-notes
generate from regex "JoplinAuto[a-z]{12}", and save as "noteBody"
save stored value "noteBody" as "noteTitle"
click "Add new"
click "New note"
enter stored value "noteBody" into "Markdown editor"
click "Back"
check that page contains stored value from "noteTitle"
click stored value "noteTitle"
check that page contains stored value from "noteBody"
web-reload-test-note
web-remove-test-note
For broader coverage, consider separate cases with multiline text or long first lines. This case verifies only the single-token example.
5. Complete a To-Do and Convert It Back to a Note
A to-do is useful only if its completion status remains consistent when the user returns. TC-06 starts with an ordinary generated note and converts it to a to-do.
click "Actions" click "Convert to todo" check that 1st checkbox is not checked click 1st checkbox check that 1st checkbox is checked web-reload-test-note check that 1st checkbox is checked click "Actions" click "Convert to note" check that page doesn't contain 1st checkbox web-reload-test-note check that page doesn't contain 1st checkbox
The case finishes with scoped cleanup. Since the generated note contains no Markdown checklist, the first checkbox refers to the to-do completion control. In other notes, make sure the assertion targets the intended checkbox.
6. Verify Markdown Checklist Changes
A Markdown checklist is different from a Joplin to-do. For example, a normal meeting note may contain several checklist items without being a to-do itself. TC-07 edits a generated note to include one unchecked Markdown item.
click "Edit"
enter string with parameters "- [ ] ${noteBody}" into "Markdown editor"
click "Stop editing"
check that 1st checkbox is not checked
click 1st checkbox
check that 1st checkbox is checked
web-reload-test-note
check that 1st checkbox is checked
click 1st checkbox
check that 1st checkbox is not checked
web-reload-test-note
check that 1st checkbox is not checked

The parameter inserts the existing body token into the Markdown line, allowing the reload rule to keep checking the rendered text. The checkbox assertions separately establish its state.
7. Assign, Filter by, and Remove Tags
Tags help people find related notes across notebooks. TC-08 generates a tag, assigns it to a disposable note, and verifies the assignment after a reload.
generate from regex "jopline2etag[a-z]{12}", and save as "tagName"
click "Actions"
click "Tags"
enter stored value "tagName" into "Search tags"
click "Add new"
click "Apply"
web-reload-test-note
click "Actions"
click "Tags"
check that page contains stored value from "tagName"
click "Cancel"
The rest of the case filters by the tag in the sidebar, opens the generated note, and checks its body. Then it deletes only that generated tag using the context menu. Finally, it returns to Welcome, checks that the note content remains, and verifies that the tag is no longer assigned. Removing an organizational label should not remove the note itself.
8. Verify Markdown and HTML Exports
Exporting notes is important for reuse outside Joplin. However, clicking an export command is not enough to show that the file contains the saved information. TC-09 checks both downloaded filenames and content.
save string with parameters "${noteTitle}.md" as "markdownFilename"
save string with parameters "${noteTitle}.html" as "htmlFilename"
click "Actions"
click "Share"
click "Plain text"
check that file stored value "markdownFilename" was downloaded
check that downloaded file stored value "markdownFilename" contains stored value "noteTitle"
check that downloaded file stored value "markdownFilename" contains stored value "noteBody"
click "Actions"
click "Share"
click "HTML"
check that file stored value "htmlFilename" was downloaded
check that downloaded file stored value "htmlFilename" contains stored value "noteTitle"
check that downloaded file stored value "htmlFilename" contains stored value "noteBody"
In this desktop Chrome build, the Plain text option produces the expected Markdown download. These checks establish that both files contain the title and body tokens. They do not check formatting fidelity, attachments, or the ability to import an entire notebook. Add those tests separately if exports are part of your backup process.
9. Follow an Internal Markdown Link
Internal links connect related notes, such as a project plan and meeting minutes. TC-10 creates two notes, copies a Markdown link from the first one, and inserts it into the second.
save stored value "noteTitle" as "linkedTitle" save stored value "noteBody" as "linkedBody" click "Actions" click "Copy Markdown link" store clipboard value as "noteLink" click "Back" web-create-test-note save stored value "noteTitle" as "linkingTitle" click "Edit" enter stored value "noteLink" into "Markdown editor" click "Stop editing" save stored value "linkedTitle" as "noteBody" web-reload-test-note click stored value "linkedTitle" check that page contains stored value from "linkedBody"
The second note is checked after reload before the link is followed. After clicking it, the destination body provides evidence that navigation reached the correct saved note. The complete case updates the stored title and body for each record before deleting both generated notes.
Reusable Rules for Joplin Testing
The example suite uses five reusable rules. They also document the state each test expects: a fresh startup, a selected note, or a note opened from Trash. For instance, the reload rule assumes the current note is open and the stored title and expected body refer to it.
web-reload-test-note with these steps:click "Back" reload check that page contains stored value from "noteTitle" click stored value "noteTitle" check that page contains stored value from "noteBody"
- Close the startup dialog and check the note list with
web-start-notes. - Use
web-create-test-noteto generate a title and body, create the note, then reopen and check it. - To move the current note to Trash, open it there, and verify its contents, call
web-open-test-note-in-trash. - The
web-remove-test-noterule uses the Trash rule and permanently removes only that generated note.
When a navigation label changes, update the shared rule instead of editing every case. In addition, remember to update noteBody whenever the expected rendered content changes. The internal-link case uses the destination title as the expected rendered link text in the linking note.
Joplin Testing Tips for Reliable Automation
- Use disposable profiles. The browser retains its own note collection until synchronization is configured. A server restart alone does not reset that collection.
- Respect the startup state. The example expects the first-launch dialog, English labels, and seeded welcome notes. An existing profile may start differently.
- Reopen after reload. The tested build returns to All notes, so select the generated title again before checking the body.
- Check the business result. Verify edited text, checkbox state, search results, or downloaded file contents instead of relying on a click completing.
- Generate unique data. Use distinct note names and tag values; never delete a shared notebook or empty the global Trash.
- Keep cases independent. Each write case creates its own note. A failed case can leave records in its disposable profile.
- Reserve the suite. The example uses sequential execution and zero retries; starting another run on the same suite can cancel the active one.
For other browsers or deployment configurations, verify storage initialization and supported browser features before reusing the same cases. Browser-specific behaviors such as sharing or clipboard access may differ.
When to Run Your Joplin Testing Suite
Run a small browser smoke test whenever you deploy a new build. The welcome note and the create/edit/reload case are useful first checks. In addition, run the relevant scenarios after changes to Markdown rendering, storage, search, tag management, or export behavior.
For a release candidate, run the complete suite against the exact build you plan to distribute. If your team changes synchronization settings or plugin behavior, add tests for those configurations separately. A scheduled regression run can also help uncover changes in the browser environment, provided that test profiles remain isolated.
Joplin Testing for Developers: Git, Docker, and CI/CD
You can run these scenarios against a reachable test deployment without setting up a development pipeline. For developers and QA teams who need to test a specific source revision, however, the proposed contribution includes a local build harness and an opt-in GitHub Actions workflow.
Build Joplin Web Locally
Start with a checkout containing the files from the example contribution. The installer requires Docker, Bash, Git, Python 3, tar, and sha256sum. On Windows, the README describes WSL with Docker integration or Git Bash with Docker Desktop.
bash packages/app-mobile/tests/E2E/scripts/install-joplin.sh install
The script serves the web build at http://127.0.0.1:18088. It builds the committed revision, excluding uncommitted application changes. Its static server supplies the required isolation headers and compressed assets. Consequently, HTTP readiness is checked before browser execution, while the browser tests verify actual rendering and persistence.
Use the installer status and logs commands for troubleshooting. To change revisions, reset the owned container first. This reset removes the container but preserves browser data, so use separate fresh test profiles.
Run the Browser Suite with the testRigor CLI
Install the pinned CLI version used in the example, and configure a dedicated suite. Set TESTRIGOR_SUITE_ID and TESTRIGOR_API_KEY in your environment; do not put credentials in source files or command arguments. Reserve the suite before starting because a new run can cancel an existing execution.
npm install --global @testrigor/[email protected] : "${TESTRIGOR_SUITE_ID:?}" "${TESTRIGOR_API_KEY:?}" e2e_dir=packages/app-mobile/tests/E2E results_dir="$(mktemp -d)" testrigor test-suite validate-syntax "$TESTRIGOR_SUITE_ID" \ --test-cases-path "$e2e_dir/test-cases/*.yaml" \ --rules-path "$e2e_dir/rules/*.yaml" --explicit-mutations testrigor test-suite run "$TESTRIGOR_SUITE_ID" \ --localhost --url http://localhost:18088 \ --min-port 44989 --max-port 44989 \ --test-cases-path "$e2e_dir/test-cases/*.yaml" \ --rules-path "$e2e_dir/rules/*.yaml" \ --branch "$(git branch --show-current)" --commit "$(git rev-parse HEAD)" \ --junit-report-save-path "$results_dir/junit.xml"
The validation command parses the supplied cases against the supplied rules using --explicit-mutations. By contrast, the execution command omits that option, so it does not replace the stored suite. Make sure the fixed tunnel port is free. Also configure the suite settings separately; the run does not supply a settings file.
Set Up the Opt-In GitHub Actions Workflow
The proposed workflow runs only through manual dispatch from the repository default branch. It is not an automatic pull request or push check and is not an adopted upstream requirement.
| Setting | Type | Purpose |
|---|---|---|
TESTRIGOR_SUITE_ID |
Repository variable | Dedicated CI test suite |
TESTRIGOR_CI_TOKEN |
Repository secret | Credential supplied as TESTRIGOR_API_KEY |
Add these settings under Settings → Secrets and variables → Actions in your repository. GitHub documents how to configure secrets and variables. Once the dedicated suite is idle and reserved, dispatch the workflow with suite_idle checked.
- Skip the browser job if credentials or suite reservation are missing.
- Serialize executions by suite within the repository without canceling an active job.
- Build and test the checked-out revision through the localhost tunnel.
- Preserve failures and upload JUnit results, source metadata, input hashes, and failure container logs.
- Remove the owned container after execution.
This setup is useful for teams testing source changes. For users testing a separate web deployment, the testRigor suite and a disposable browser profile are sufficient; the Docker harness is optional.
Conclusion
A useful Joplin testing strategy starts with the information people trust the app to preserve. Create a note, change it, reload the page, and check that the expected content is still available. Next, cover search, recovery from Trash, to-dos, checklists, tags, exports, and links according to the way your team uses the application.
Unit and integration tests help protect the underlying logic and storage interactions. Browser tests add evidence that users can complete their daily work through the actual web interface. Begin with a fresh test profile and generated notes, then extend coverage to synchronization or other clients if those are important to your workflow.
| Achieve More Than 90% Test Automation | |
| Step by Step Walkthroughs and Help | |
| 14 Day Free Trial, Cancel Anytime |




