Sha256: ec9e5eb7bc201dbbf7ededa29f8ed54348b5e30a96e4d56f4276b4588314a4c3

Contents?: true

Size: 980 Bytes

Versions: 17

Compression:

Stored size: 980 Bytes

Contents

require 'test_helper'

class ModalContentsTest < ViewCase

  setup :visit_adminpanel_new_user

  def test_modals_exclude_belongs_to_remote_resources
    visit adminpanel.new_user_path
    # test in belongs_to request
    trigger_modal 'Agregar Rol'
    assert_no_link 'Agregar Permisos'
  end

  def test_modals_exclude_has_many_remote_resources
    # test has_many
    visit adminpanel.new_role_path
    trigger_modal 'Agregar Permisos'
    assert_no_link 'Agregar Rol'
  end

  def test_modals_exclude_file_input
    # test file_field and non file field
    visit adminpanel.new_role_path
    trigger_modal 'Agregar Permisos'
    assert_no_link 'Agregar Rol'
  end

  def test_modals_exclude_add_images_button
    # test file_field and non file field
    visit adminpanel.new_salesman_path
    trigger_modal 'Agregar Producto'
    assert_no_selector '#add-image-link'
  end

  private
    def visit_adminpanel_new_user
      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/modal_contents_test.rb
adminpanel-3.6.0 test/features/shared/form/modal_contents_test.rb
adminpanel-3.5.1 test/features/shared/form/modal_contents_test.rb
adminpanel-3.5.0 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.7 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.6 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.5 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.4 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.3 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.2 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.1 test/features/shared/form/modal_contents_test.rb
adminpanel-3.4.0 test/features/shared/form/modal_contents_test.rb
adminpanel-3.3.4 test/features/shared/form/modal_contents_test.rb
adminpanel-3.3.3 test/features/shared/form/modal_contents_test.rb
adminpanel-3.3.0 test/features/shared/form/modal_contents_test.rb
adminpanel-3.2.1 test/features/shared/form/modal_contents_test.rb
adminpanel-3.2.0 test/features/shared/form/modal_contents_test.rb