Sha256: 47d2fbc365beabe9e1a3dd72d8434012fe55335557b9501308dca84a1f468b63

Contents?: true

Size: 422 Bytes

Versions: 10

Compression:

Stored size: 422 Bytes

Contents

module Locations
  def go_to_dashboard_works
    visit '/dashboard/works'
    expect(page).to have_selector('li.active', text: "My Works")
  end

  def go_to_user_profile
    within '#user_utility_links' do
      first(:xpath, ".//li[contains(@class, 'dropdown') and not(contains(@class, 'nav-item'))]/a").click
      click_link 'View Profile'
    end
  end
end

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/support/locations.rb
hyrax-1.1.0 spec/support/locations.rb
hyrax-1.0.5 spec/support/locations.rb
hyrax-1.0.4 spec/support/locations.rb
hyrax-1.0.3 spec/support/locations.rb
hyrax-1.0.2 spec/support/locations.rb
hyrax-1.0.1 spec/support/locations.rb
hyrax-1.0.0.rc2 spec/support/locations.rb
hyrax-1.0.0.rc1 spec/support/locations.rb
test_hyrax-0.0.1.alpha spec/support/locations.rb