aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorPhilip Arndt <git@p.arndt.io>2015-05-03 11:57:44 +1000
committerPhilip Arndt <git@p.arndt.io>2015-05-03 11:57:44 +1000
commit09e4b66498784a3f4c70d3755cadc259adfec067 (patch)
treeb23feb15fb3b5f51d45c65a0b28aa7c5a135dfb1 /spec/features
parenta0b8d373f2afcf49e6940893ed13a073e49ec128 (diff)
parent2d20b491fabef78f3b2e69f3a5fe19ad8fce8e15 (diff)
downloadrefinerycms-blog-09e4b66498784a3f4c70d3755cadc259adfec067.tar.gz
refinerycms-blog-09e4b66498784a3f4c70d3755cadc259adfec067.tar.bz2
refinerycms-blog-09e4b66498784a3f4c70d3755cadc259adfec067.zip
Merge remote-tracking branch 'origin/fix-specs'
This makes the specs wait for the JS to be executed, which seems to take some time, unfortunately.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/refinery/blog/admin/posts_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/features/refinery/blog/admin/posts_spec.rb b/spec/features/refinery/blog/admin/posts_spec.rb
index 901ef3e..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)")