Sha256: 24b3de040d8a613d3629718466aee5d0d6048d424fb3bb0b5f92b5bb6d754a19

Contents?: true

Size: 536 Bytes

Versions: 3

Compression:

Stored size: 536 Bytes

Contents

require 'rails_helper'

feature 'Home page' do
  before do
    create(:department)
    omni_auth_log_in_as 'test.user@digital.justice.gov.uk'
    visit '/'
  end

  scenario 'Viewing the page' do
    within('h1') { expect(page).to have_text('Ministry of Justice people finder') }
    expect(page).to have_text('Search the people finder')
    expect(page).to have_css('input#query')
    expect(page).to have_link('Add new profile', href: new_person_path)
    expect(page).to have_link('Ministry of Justice', href: groups_path)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
peoplefinder-0.1.1 spec/features/home_spec.rb
peoplefinder-0.1.0 spec/features/home_spec.rb
peoplefinder-0.0.2 spec/features/home_spec.rb