Sha256: 3eea9ada03370cfb4cf471550835ddc4b6c53a6585809fa4e39845127708d586

Contents?: true

Size: 740 Bytes

Versions: 40

Compression:

Stored size: 740 Bytes

Contents

require 'spec_helper'

feature 'Endpoint access', js: true do
  before do
    populate_test_users
  end

  context 'as admin' do
    before do
      log_in_as('admin1')
      wait_for_ajax
    end

    it 'can access test_access endpoint' do
      press('Pricing Config.')
      press('Loan Programs')
      press('Test Access')
      wait_for_ajax
      expect(page).to have_content 'You have admin access'
    end
  end

  context 'as dev' do
    before do
      log_in_as('dev1')
      wait_for_ajax
    end

    it 'can not access test_access endpoint' do
      press('Pricing Config.')
      press('Loan Programs')
      press('Test Access')
      wait_for_ajax
      expect(page).to have_content 'Permission Denied'
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
marty-5.1.3 spec/features/endpoint_access.rb
marty-5.1.2 spec/features/endpoint_access.rb
marty-5.1.1 spec/features/endpoint_access.rb
marty-5.1.0 spec/features/endpoint_access.rb
marty-3.1.0 spec/features/endpoint_access.rb
marty-3.0.1 spec/features/endpoint_access.rb
marty-4.0.0.rc2 spec/features/endpoint_access.rb
marty-3.0.0 spec/features/endpoint_access.rb
marty-2.9.3 spec/features/endpoint_access.rb
marty-2.9.2 spec/features/endpoint_access.rb
marty-2.9.1 spec/features/endpoint_access.rb
marty-2.8.0 spec/features/endpoint_access.rb
marty-2.7.3 spec/features/endpoint_access.rb
marty-2.7.2 spec/features/endpoint_access.rb
marty-2.7.1 spec/features/endpoint_access.rb
marty-2.7.0 spec/features/endpoint_access.rb
marty-2.6.8 spec/features/endpoint_access.rb
marty-2.6.7 spec/features/endpoint_access.rb
marty-2.6.6 spec/features/endpoint_access.rb
marty-2.6.5 spec/features/endpoint_access.rb