0
有没有简写为find
像have_selector
?rspec和水豚“应该找到”速记
例如,我可以这样写:
it { should have_selector('h1', text: 'Welcome') }
是否有类似的简写以下?
it "should have blank customer input" do
find_field('CustomerName').value.should be_blank
end