Sha256: bb09d45089a5dc42ed08e8fb8b214150da66cfcd2ac854c261d025d18bcd451f

Contents?: true

Size: 477 Bytes

Versions: 3

Compression:

Stored size: 477 Bytes

Contents

require 'spec_helper'

feature "edit mode after clicking a link" do
  include SessionSteps

  scenario "switch to edit mode after clicking a link (turbolinks support)" do
    login(:admin)
    visit root_path
    
    # switch to another page (turbolinks)
    first(:link, I18n.t(:my_profile)).click

    # edit mode should still work
    within(".box.section.contact_information") do
      click_on I18n.t(:edit)
      page.should have_content I18n.t(:add)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 spec/features/edit_mode_after_clicking_a_link_spec.rb
your_platform-1.0.0 spec/features/edit_mode_after_clicking_a_link_spec.rb
your_platform-0.0.2 spec/features/edit_mode_after_clicking_a_link_spec.rb