spec/features/ui_spec.rb in locomotivecms-search-0.2.8 vs spec/features/ui_spec.rb in locomotivecms-search-0.3.0
- old
+ new
@@ -1,34 +1,35 @@
SEARCH_ENGINE = 'mongoid'
require 'spec_helper'
feature "User interface" do
background do
+ setup_search_engine
setup_search
end
-
+
scenario "Searchable flag in content type form", js: true do
visit 'http://test.example.com:7171/locomotive'
-
+
fill_in "Email", with: "admin@locomotiveapp.org"
fill_in "Password", with: "easyone"
click_button "Log in"
-
+
click_link "new model"
fill_in "Name", with: "Posts"
fill_in "Field name", with: "Title"
click_link "add"
find('.actions .toggle').click
page.should have_content "Searchable"
end
-
+
scenario "Searchable flag in page form", js: true do
visit 'http://test.example.com:7171/locomotive'
-
+
fill_in "Email", with: "admin@locomotiveapp.org"
fill_in "Password", with: "easyone"
click_button "Log in"
-
+
click_link "new page"
page.should have_content "Searchable"
end
end
\ No newline at end of file