What are some strategies for writing BDD tests that can test behavior based on specific data in the system?
For example, let's say I worked with the following script:
Feature: Search for friend
In order to find a friend
As a user
I want to search my list of friends
And filter by 'first name'
How could this test ever succeed if / until the dummy friends logged in?
To what extent will the dummy criteria be used for testing?
Should I hard-write the name of a friend, assuming it already exists in the database?
But , what if I transfer my code to a new environment with a fresh database?
Or, do I have to write code to manually insert dummy data into the system before each test runs?
, , , .
/, ?
, "Feature: ". , "", " " "", .
, , , .
? ?