require 'rails_helper'

RSpec.describe 'Auto wizard', type: :system, set_up: false do

  scenario 'Automatic setup and login' do

    FileUtils.ln(
      Rails.root.join('contrib', 'auto_wizard_test.json'),
      Rails.root.join('auto_wizard.json'),
      force: true
    )

    visit 'getting_started/auto_wizard'

    expect(current_login).to eq('master@example.com')
  end
end
