Sha256: dbfcac1a97bd927425ceacb9d9032d23598dad0f701a8e7ab1059e536ee649e7

Contents?: true

Size: 957 Bytes

Versions: 17

Compression:

Stored size: 957 Bytes

Contents

require 'test_helper'

class ResourceFieldTest < ViewCase

  setup :sign_in

  def test_resource_select_with_its_display_names
    visit adminpanel.new_permission_path

    selector = find('#permission_resource')

    assert selector.find('option', text: 'Categoria')
    assert selector.find('option', text: 'Producto')
    assert selector.find('option', text: 'Analytics')
    assert selector.find('option', text: 'Usuario')
    assert selector.find('option', text: 'Rol')
    assert selector.find('option', text: 'Permiso')
    assert selector.find('option', text: 'Sección')
    assert selector.find('option', text: 'Taza')
    assert selector.find('option', text: 'Departamento')
    assert selector.find('option', text: 'Galeria')
    assert selector.find('option', text: 'FileResource')
    assert selector.find('option', text: 'Agente')
    # assert false
  end

  private
    def sign_in
      visit adminpanel.signin_path
      login
    end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
adminpanel-3.6.1 test/features/shared/form/resource_field_test.rb
adminpanel-3.6.0 test/features/shared/form/resource_field_test.rb
adminpanel-3.5.1 test/features/shared/form/resource_field_test.rb
adminpanel-3.5.0 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.7 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.6 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.5 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.4 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.3 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.2 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.1 test/features/shared/form/resource_field_test.rb
adminpanel-3.4.0 test/features/shared/form/resource_field_test.rb
adminpanel-3.3.4 test/features/shared/form/resource_field_test.rb
adminpanel-3.3.3 test/features/shared/form/resource_field_test.rb
adminpanel-3.3.0 test/features/shared/form/resource_field_test.rb
adminpanel-3.2.1 test/features/shared/form/resource_field_test.rb
adminpanel-3.2.0 test/features/shared/form/resource_field_test.rb