We use Selenium WebDriver Show archive.org snapshot integrated with Cucumber/Capybara for full-stack integration testing.
Your forked MovieDB should already include a feature that uses a real browser. Add the @javascript
tag to your other features to test it yourself.
When you run your cucumber feature now with NO_HEADLESS=1 geordi cucumber
, you should see a browser opening. Get someone to help you if this does not work.
Some of your features might now fail. You might find solutions below:
Selenium is a powerful tool that you can use to test almost all user interfaces. However it has a lot of quirks you have to deal with. Luckily for you, someone else has already solved all major issues that the Capybara/Selenium combo brings with it.
Understand the following issues and solutions in depth:
@javascript
tag do and how does it work?database_cleaner
gem for integration tests?"/__identify__"
request in Capybara testsWork through the code of all Spreewald steps Show archive.org snapshot .
Do you understand the implementation of each step?