mercredi 12 avril 2017

Setting up TestCafe with Rails backend and fixtures data

I'm currently working on a Rails project that uses RSpec as the testing framework. We have different Rails fixture data that helps us test our UI when we're in different states.

However, I've been intrigued with using TestCafe to handle our functional UI testing. I've played around with various examples of the website and it seems great to use. But the one part holding me back from introducing it into my project is I'm not sure how to use TestCafe to set up something equivalent to Rails fixture data - i.e. I want to use TestCafe to set up different scenarios where my database is in a particular state so that I can then test the UI.

I've tried searching through TestCafe's documentation but haven't had much luck since TestCafe seems to use the word "fixtures" to represent a particular page you're testing and not the mock data.

Aucun commentaire:

Enregistrer un commentaire