Currently, I am involved in a Rails project that utilizes RSpec for testing. We rely on various Rails fixture data to test our UI under different conditions.
Recently, I came across TestCafe for handling functional UI testing, and I find it quite intriguing. After experimenting with it using different examples from the website, I believe it could be a valuable addition to our project. However, my main concern is understanding how to use TestCafe to replicate the functionality of Rails fixture data - essentially setting up different scenarios where the database is in a specific state for UI testing.
I have tried searching through TestCafe's documentation, but I haven't been successful so far. It seems that TestCafe uses the term "fixtures" to refer to the specific pages being tested rather than mock data.