Sha256: ba3a0650c66a39ba51fb2a4183e90e73932d7749e5d536319de8b71b9a4a23f1

Contents?: true

Size: 888 Bytes

Versions: 6

Compression:

Stored size: 888 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 spec/features/ui_spec.rb
locomotivecms-search-0.3.5 spec/features/ui_spec.rb
locomotivecms-search-0.3.4 spec/features/ui_spec.rb
locomotivecms-search-0.3.3 spec/features/ui_spec.rb
locomotivecms-search-0.3.2 spec/features/ui_spec.rb
locomotivecms-search-0.3.0 spec/features/ui_spec.rb