diff options
-rw-r--r-- | spec/features/refinery/blog/admin/posts_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/refinery/blog/admin/posts_spec.rb b/spec/features/refinery/blog/admin/posts_spec.rb index 00a60b8..c139b0d 100644 --- a/spec/features/refinery/blog/admin/posts_spec.rb +++ b/spec/features/refinery/blog/admin/posts_spec.rb @@ -46,6 +46,7 @@ module Refinery # hidden and capybara refuses to fill in elements it can't see page.evaluate_script("WYMeditor.INSTANCES[0].html('<p>And I love it</p>')") click_link "toggle_advanced_options" + sleep 1 expect(page).to have_css '.blog_categories' expect(page).to have_css "#post_category_ids_#{blog_category.id}" expect(page).to have_selector("#post_category_ids_#{blog_category.id}:not(:checked)") @@ -170,7 +171,7 @@ module Refinery page.evaluate_script("WYMeditor.INSTANCES[0].html('<p>I totally did not write it.</p>')") click_link "toggle_advanced_options" - + expect(page).to have_content("Author") select other_guy.username, :from => "Author" click_button "Save" |