DESCRIPTION
This tests the Yancy editor application JavaScript.
To run this test, you must install Test::Mojo::Role::Selenium and Selenium::Chrome. Then you must set the TEST_SELENIUM environment variable to 1.
Additionally, setting YANCY_SELENIUM_CAPTURE=1 in the environment will add screenshots to the xt/selenium directory. Each screenshot begins with a counter so you can see the application state as the test runs.
NOTES
The editor item form uses focus/blur events to update the data, so using submit_ok does not work correctly. Using send_keys_ok( undef, \'return' ) works, and also tests that the submit event is properly handled.