我有一部分功能
And I should see "Thank you for your interest. We will soon send an email with activation instructions." within "span class="notificationText""
和
自动生成的步骤
Then /^I should see "([^"]*)" within "([^"]*)"notificationText"([^"]*)"$/ do |arg1, arg2, arg3|
end
我无法解释它。我正在尝试在其中进行以下测试(来自http://www.cowboycoded.com/2011/01/05/better-web-steps-for-cucumber-with-capybara/),但无法理解哪些论点代表什么。
with_scope(select,:css_id) do
page.should have_selector("h1",:text=>text)
end