Sha256: eb747a00016b3af654c41702dfc74890a1eb30621341f64052a51cac9bef8d53

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

SEARCH_ENGINE = 'mongoid'
require 'spec_helper'

feature "User interface" do
  background do
    setup_search
  end
  
  scenario "Searchable flag in 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms-search-0.2.5 spec/features/ui_spec.rb
locomotivecms-search-0.2.4 spec/features/ui_spec.rb
locomotivecms-search-0.2.3 spec/features/ui_spec.rb
locomotivecms-search-0.2.2 spec/features/ui_spec.rb
locomotivecms-search-0.2.1 spec/features/ui_spec.rb
locomotivecms-search-0.2.0 spec/features/ui_spec.rb