次のように2つの簡単なシナリオを作成していました:
Scenario: 1
Given I am on the homepage
When I click the expand arrow
Then the drawer is expanded
Scenario: 2
Given the drawer is expanded
問題は、最初のシナリオの THEN と 2 番目の GIVEN がキュウリによって次のように記述されていることです。
Then /^the drawer is expanded$/ do
Given /^the drawer is expanded$/ do
そして、次のエラーメッセージが表示されます。
Ambiguous match of "the drawer is expanded"
実行しようとすると。
このあいまいな手順を回避する方法はありますか?
どうもありがとう!