spec/features/ui_spec.rb in locomotivecms-search-0.2.5 vs spec/features/ui_spec.rb in locomotivecms-search-0.2.6
- old
+ new
@@ -4,11 +4,11 @@
feature "User interface" do
background do
setup_search
end
- scenario "Searchable flag in form", js: true do
+ 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"
@@ -16,8 +16,19 @@
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