For plugin developers: Write test cases that interact with a running obsidian instance!

This is a sample repo demonstrating how to write test cases that interact with obsidian. It works by using an electron compatible version of webdriver to control a headless version of Obsidian. Works for local development AND I got it working inside ci/docker.

The test case included in the tin:

  1. builds the sample plugin and installs it into an empty vault
  2. boots obsidian
  3. turns off safe mode
  4. enables the plugin
  5. uses the command launcher to launch the plugins command
  6. verifies it shows the correct modal