3 ms·
Capybara's a great too that we use heavily at https://www.incoin.io https://www.incoin.io. One of the hangups we had is with multiple API endpoints being hit f
by tonyhb 11y ago
Capybara's a great too that we use heavily at https://www.incoin.io https://www.incoin.io. One of the hangups we had is with multiple API endpoints being hit for a particular page. In some instances the first API request would finish and Capybara would assume that loading is done, when really there's another API request pending meaning our promises haven't yet finished and tests would fail randomly.
In order to prevent this you need to delay Capybara's processing so that all requests have finished using a request counter. Information is here: http://tonyhb.com/stop-treading-water-with-marionette-and-capybara http://tonyhb.com/stop-treading-water-with-marionette-and-ca...
Other than that, Capybara is absolutely amazing. It doesn't replace manual UI testing by any means, though it provides a lot of confidence knowing we haven't broken critical components of our app.