mirror of
https://github.com/ysonc/obsidian-tasks-syncer.git
synced 2026-07-22 08:32:33 +00:00
1.7 KiB
1.7 KiB
TickTick manual smoke test
This is an opt-in desktop test. Automated tests never call TickTick or read a real vault.
Prerequisites
- A disposable Obsidian vault and TickTick test list.
- A TickTick OAuth app with
tasks:read tasks:write. - An exact registered redirect URL.
- No production credentials committed to the repository.
Steps
- Run
npm ci,npm test, andnpm run build. - Copy/link the plugin into the disposable vault and enable it.
- In Task Syncer settings select TickTick, enter client ID, client secret, exact redirect URL, and an IANA timezone such as
America/Toronto. - Click Connect. Confirm the isolated login window closes only on the configured redirect.
- Click Load lists, select the test list, and open the Task Syncer sidebar.
- Create a task with a due date. Verify its title/date in TickTick.
- Edit its title/date and verify the update.
- Complete it. Enable completed tasks and verify it is shown completed and its checkbox is disabled (TickTick has no documented reopen endpoint).
- Push a note containing the same title with case/whitespace differences; verify no duplicate is created. Add a distinct checked task; verify it is created and completed.
- Delete completed tasks and verify deletion.
- Disconnect. Confirm refresh gives an actionable connect message and the provider token cache is removed from Obsidian SecretStorage.
- Switch to Microsoft and back; verify each provider retains its own selected list while the visible task cache is cleared.
Security checks
- Search console output for access/refresh tokens: none should appear.
- A changed OAuth state or non-matching callback must fail before token exchange.
- A 401 requires reconnect; no refresh token is assumed.