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:
- builds the sample plugin and installs it into an empty vault
- boots obsidian
- turns off safe mode
- enables the plugin
- uses the command launcher to launch the plugins command
- verifies it shows the correct modal