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-14.3.0 spec/features/endpoint_access.rb
marty-14.0.0 spec/features/endpoint_access.rb
marty-13.0.2 spec/features/endpoint_access.rb
marty-11.0.0 spec/features/endpoint_access.rb
marty-10.0.3 spec/features/endpoint_access.rb
marty-10.0.2 spec/features/endpoint_access.rb
marty-10.0.0 spec/features/endpoint_access.rb
marty-9.5.1 spec/features/endpoint_access.rb
marty-9.5.0 spec/features/endpoint_access.rb
marty-9.3.3 spec/features/endpoint_access.rb
marty-9.3.2 spec/features/endpoint_access.rb
marty-9.3.0 spec/features/endpoint_access.rb
marty-8.5.0 spec/features/endpoint_access.rb
marty-8.4.1 spec/features/endpoint_access.rb
marty-8.3.1 spec/features/endpoint_access.rb
marty-8.2.0 spec/features/endpoint_access.rb
marty-8.0.0 spec/features/endpoint_access.rb
marty-6.1.0 spec/features/endpoint_access.rb
marty-5.2.0 spec/features/endpoint_access.rb
marty-5.1.4 spec/features/endpoint_access.rb