aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorBrice Sanchez <contact@brice-sanchez.com>2015-05-01 23:21:36 -0400
committerBrice Sanchez <contact@brice-sanchez.com>2015-05-01 23:42:06 -0400
commit2d20b491fabef78f3b2e69f3a5fe19ad8fce8e15 (patch)
treec37f555764274b60d2b4769d94c5d6ed1115c67e /spec/features
parent77f8860008f60c4702589a670780e8554b1e5f1e (diff)
downloadrefinerycms-blog-2d20b491fabef78f3b2e69f3a5fe19ad8fce8e15.tar.gz
refinerycms-blog-2d20b491fabef78f3b2e69f3a5fe19ad8fce8e15.tar.bz2
refinerycms-blog-2d20b491fabef78f3b2e69f3a5fe19ad8fce8e15.zip
Fix specs
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/refinery/blog/admin/posts_spec.rb5
1 files changed, 4 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..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.")