Sha256: 02833763e3b4cb938b2285c531ee208e74f3fde9baefc2a5738768c0fdef52fc

Contents?: true

Size: 643 Bytes

Versions: 24

Compression:

Stored size: 643 Bytes

Contents

require 'spec_helper'

feature "Pages index" do
  background do
    sign_in
    create(:page, name: "Test page")
  end

  scenario "click on edit page" do
    click_link "Pages"
    page.find(:css, '.controls .btn-primary').click
    page.should have_content "Edit page"
  end

  scenario "click on delete page" do
    click_link "Pages"
    page.find(:css, '.controls .btn-danger').click
    page.should_not have_content "Test page"
    page.should have_content "successfully"
  end

  scenario "does not paginate" do
    40.times { create(:page) }
    click_link "Pages"
    page.should have_css(".sortable_tree li", :count => 41)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
brightcontent-pages-2.6.0 spec/features/pages_index_spec.rb
brightcontent-pages-2.5.1 spec/features/pages_index_spec.rb
brightcontent-pages-2.5.0 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.6 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.5 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.4 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.3 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.2 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.1 spec/features/pages_index_spec.rb
brightcontent-pages-2.4.0 spec/features/pages_index_spec.rb
brightcontent-pages-2.3.4 spec/features/pages_index_spec.rb
brightcontent-pages-2.3.3 spec/features/pages_index_spec.rb
brightcontent-pages-2.3.2 spec/features/pages_index_spec.rb
brightcontent-pages-2.3.1 spec/features/pages_index_spec.rb
brightcontent-pages-2.3.0 spec/features/pages_index_spec.rb
brightcontent-pages-2.2.2 spec/features/pages_index_spec.rb
brightcontent-pages-2.2.1 spec/features/pages_index_spec.rb
brightcontent-pages-2.2.0 spec/features/pages_index_spec.rb
brightcontent-pages-2.1.5 spec/features/pages_index_spec.rb
brightcontent-pages-2.1.4 spec/features/pages_index_spec.rb