How to use Magic Test for interactive development
mainMagic Test provides a three-window developer experience:
- A debugger: Where you can type Capybara commands manually.
- A browser: Where you can click through the app to record actions.
- An editor: Where you watch the generated test code appear.
Using in existing tests
To start an interactive session in any existing or new system test, simply call the magic_test method at the point where you want the interaction to begin.
# Inside a system test
# ... setup code ...
magic_test
# Interaction starts here