...
/Test JavaScript Interactions with a Real Browser
Test JavaScript Interactions with a Real Browser
Learn and test the interaction of JavaScript with a real browser.
We'll cover the following...
We'll cover the following...
If we have features that require JavaScript or won’t work if our JavaScript is broken, we need to test them in a real browser. While unit tests could help, they won’t give complete confidence because we need to see the JavaScript executing in context. Because we’ve set our system tests to use :rack_test
, that means they won’t use a real browser, and JavaScript won’t be executed. We need to allow a subset of our tests to actually use a real browser (which is what Rails’ system tests do by default). ...