Permalink
Browse files

it seems that capybaras wait mechanism cant figure this out, suggesti…

…ons?
  • Loading branch information...
1 parent 4feba83 commit 1e780b09c34355e29448d632c7e20cfb838487d1 @JonRowe committed Dec 15, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/capybara/spec/session/fill_in_spec.rb
@@ -106,12 +106,14 @@
it 'should allow me to change the contents of a contenteditable element', :requires => [:js], :contenteditable => true do
@session.visit('/with_js')
@session.fill_in('existing_content_editable', :with => 'WYSIWYG')
+ sleep 0.1
@session.find(:css,'#existing_content_editable').text.should == 'WYSIWYG'
end
it 'should allow me to set the contents of a contenteditable element', :requires => [:js], :contenteditable => true do
@session.visit('/with_js')
@session.fill_in('blank_content_editable', :with => 'WYSIWYG')
+ sleep 0.1
@session.find(:css,'#blank_content_editable').text.should == 'WYSIWYG'
end

0 comments on commit 1e780b0

Please sign in to comment.