require 'application_system_test_case'

class FeedbackTest < ApplicationSystemTestCase
  test 'reaching the report form' do
    user = users(:consumer)
    user.password = 'password'
    user.save!

    visit script_url(Script.first, locale: :en)
    click_on 'report the script'
    fill_in 'Email', with: user.email
    fill_in 'Password', with: user.password
    click_on 'Log in'
    assert_selector 'p', text: 'Before reporting, please note'
  end
end
