From 2d20b491fabef78f3b2e69f3a5fe19ad8fce8e15 Mon Sep 17 00:00:00 2001 From: Brice Sanchez Date: Fri, 1 May 2015 23:21:36 -0400 Subject: Fix specs --- spec/features/refinery/blog/admin/posts_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/features/refinery/blog/admin/posts_spec.rb b/spec/features/refinery/blog/admin/posts_spec.rb index 00a60b8..37579ef 100644 --- a/spec/features/refinery/blog/admin/posts_spec.rb +++ b/spec/features/refinery/blog/admin/posts_spec.rb @@ -49,6 +49,7 @@ module Refinery 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)") + sleep 1 check blog_category.title expect(page).to have_selector("#post_category_ids_#{blog_category.id}:checked") click_button "Save" @@ -171,7 +172,9 @@ module Refinery click_link "toggle_advanced_options" - select other_guy.username, :from => "Author" + select other_guy.username, :from => "post[user_id]" + + sleep 1 click_button "Save" expect(page).to have_content("was successfully added.") -- cgit v1.2.3