I'm using spec-flow and selenium to do some automation testing.
I'm testing a hierarchy component which may contain parent / child nodes.
My test is to ensure that the hierarchy displays parent and child nodes but of course in the real system this will depend on the database being present and populated with the correct data is there a way to mock the database in automated test is it bad idea?
How do I ensure that my tests are robust?
This feels like it's the wrong thing to do but given my problem I can't see any other alternatives but to ensure that my environment is always reset before each automation test run.