Sha256: bf048f1ce9b06b67ec8a3781c764545a1ec5b8cb9cfa83b95537e939fe9d0db6

Contents?: true

Size: 841 Bytes

Versions: 11

Compression:

Stored size: 841 Bytes

Contents

module Locations
  def go_to_dashboard
    visit '/dashboard'
    # causes selenium to wait until text appears on the page
    expect(page).to have_content('My Dashboard')
  end

  def go_to_dashboard_files
    visit '/dashboard/files'
    expect(page).to have_selector('li.active', text: "My Files")
  end

  def go_to_dashboard_collections
    visit '/dashboard/collections'
    expect(page).to have_content('My Collections')
  end

  def go_to_dashboard_shares
    visit '/dashboard/shares'
    expect(page).to have_content('Files Shared with Me')
  end

  def go_to_dashboard_highlights
    visit '/dashboard/highlights'
    expect(page).to have_content('My Highlights')
  end

  def go_to_user_profile
    first(".dropdown-toggle").click
    click_link "my profile"
  end
end

RSpec.configure do |config|
  config.include Locations
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sufia-5.0.0 spec/support/locations.rb
sufia-6.0.0 spec/support/locations.rb
sufia-6.0.0.rc4 spec/support/locations.rb
sufia-6.0.0.rc3 spec/support/locations.rb
sufia-5.0.0.rc1 spec/support/locations.rb
sufia-6.0.0.rc2 spec/support/locations.rb
sufia-6.0.0.rc1 spec/support/locations.rb
sufia-4.3.1 spec/support/locations.rb
sufia-6.0.0.beta1 spec/support/locations.rb
sufia-4.2.0 spec/support/locations.rb
sufia-4.1.0 spec/support/locations.rb