do a small sleep to hopefully aviod an Element not found error

This commit is contained in:
Reinier Balt 2013-03-02 11:44:54 +01:00
parent 4aa5933946
commit fbfc9c7086

View file

@ -71,6 +71,7 @@ When /^I edit the state of context "(.*?)" to closed$/ do |context_name|
# wait for the form to go away
page.should_not have_css("button#submit_context_#{context.id}", :visible => true)
sleep 0.10
# wait for the changed context to appear
page.should have_css("a#link_edit_context_#{context.id}", :visible=> true)
end