Wait for login before visiting CMS

This commit is contained in:
Rob Harrington
2016-04-18 01:19:02 +10:00
parent 10133a13f2
commit 383f7c57aa

View File

@@ -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