polarblau / capycorder

Chrome extension, generating Capybara request spec steps based on user interaction.
https://chrome.google.com/webstore/detail/niijdolnjmjdjakbanogihdlhcbhfkho
83 stars 15 forks source link

Fix: filling of test name included in output #25

Open polarblau opened 12 years ago

polarblau commented 12 years ago
it 'should navigate to post' do
  visit('/')
  fill_in('capycorder-spec-name', :with => 'should navigate to post')
  click_link('“Foobar”')
  page.should have_selector('h2')
end
polarblau commented 12 years ago

Unfortunately this seems to be a regression caused by the implementation for #9.

polarblau commented 12 years ago

Better than this work–around would probably be to use a proper form and simply bind the submit event, since ENTER will trigger that anyways.