aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/refinery/blog/admin/posts_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/refinery/blog/admin/posts_spec.rb')
-rw-r--r--spec/features/refinery/blog/admin/posts_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/features/refinery/blog/admin/posts_spec.rb b/spec/features/refinery/blog/admin/posts_spec.rb
index 37579ef..c139b0d 100644
--- a/spec/features/refinery/blog/admin/posts_spec.rb
+++ b/spec/features/refinery/blog/admin/posts_spec.rb
@@ -46,10 +46,10 @@ 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)")
- sleep 1
check blog_category.title
expect(page).to have_selector("#post_category_ids_#{blog_category.id}:checked")
click_button "Save"
@@ -171,10 +171,8 @@ module Refinery
page.evaluate_script("WYMeditor.INSTANCES[0].html('<p>I totally did not write it.</p>')")
click_link "toggle_advanced_options"
-
- select other_guy.username, :from => "post[user_id]"
-
- sleep 1
+ expect(page).to have_content("Author")
+ select other_guy.username, :from => "Author"
click_button "Save"
expect(page).to have_content("was successfully added.")