मैं जादूगर एक संकेत बनाने के लिए चिंतन का उपयोग कर रहा, लेकिन capybara (2.0.2) को जन्म देती हैवसीयत/Capybara अस्पष्ट मिलान
Feature: Signing up
In order to be attributed for my work
As a user
I want to be able to sign u
Scenario: Signing up
Given I am on the homepage
When I follow "Sign up"
And I fill in "Email" with "[email protected]"
And I fill in "Password" with "password"
Ambiguous match, found 2 elements matching field "Password" (Capybara::Ambiguous)
./features/step_definitions/web_steps.rb:10:in `/^(?:|I)fill in "([^"]*)" with "([^"]*)"$/'
features/signing_up.feature:10:in `And I fill in "Password" with "password"'
And I fill in "Password confirmation" with "password"
And I press "Sign up"
Then I should see "You have signed up successfully."
कदम परिभाषा
When /^(?:|I)fill in "([^"]*)" with "([^"]*)"$/ do |field, value|
fill_in(field, :with => value)
end
fill_in ("पासवर्ड", के साथ: '123456',: match =>: पहला) भी एक अच्छा है – Norto23