I'm developing my Rails application in a WSL environment on Windows 11.
I use VS Code for my editor, and use the WSL - Remote extension to connect to the WSL filesystem, edit my app, etc.
When I run rake test:system
I get:
blaine@blaine_ems_dev:~/myapp$ rake test:system
rake aborted!
Webdrivers::BrowserNotFound: Failed to find Chrome binary.
/home/blaine/myapp/test/application_system_test_case.rb:7:in `<class:ApplicationSystemTestCase>'
/home/blaine/myapp/test/application_system_test_case.rb:3:in `<main>'
/home/blaine/myapp/test/system/customer_administration_stories_test.rb:1:in `<main>'
Tasks: TOP => test:system
(See full trace by running task with --trace)
Neat thing is, I can open Chrome via WSL by issuing this command:
/mnt/c/Program\ Files/Google/Chrome/Application/chrome.exe
Is there some way I can simply plug in the path to the Windows binary I have installed, and have it run my system tests?
Or perhaps there's a better way altogether?