From 383f7c57aaa467b5421bc3e66f3b5ea2bef41ffa Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Mon, 18 Apr 2016 01:19:02 +1000 Subject: [PATCH] Wait for login before visiting CMS --- spec/features/admin/cms_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/features/admin/cms_spec.rb b/spec/features/admin/cms_spec.rb index 2d4056b792..8ab180906e 100644 --- a/spec/features/admin/cms_spec.rb +++ b/spec/features/admin/cms_spec.rb @@ -26,6 +26,7 @@ feature %q{ scenario "non-admin user can't access CMS admin", js: true do login_to_consumer_section + page.should_not have_content "Login" visit cms_admin_path page.should_not have_content "ComfortableMexicanSofa" current_path.should == root_path