Étant donné les éléments suivants dans Concombre:concombre enregistrement ID
Given a car exists with title: "Toyota"
And I go to path "/cars"
And I follow "Toyota Page"
And I should be on path "/cars/CAR_ID"
Where CAR_ID is the ID of the car titled "Toyota".
Comment puis-je savoir que ID?
Merci!
Et comment cela se ferait sans conserves au vinaigre? –
Dans ce cas, j'écrirais une étape personnalisée pour trouver une voiture donnée par son nom, puis j'utiliserais shoulda pour déterminer s'il s'agit d'une correspondance. – Jonathan