Sha256: 04ff00f7cdd5fd7166483392dd16836c1d3e05c81188ba19b75d3c9e52fd4e81

Contents?: true

Size: 698 Bytes

Versions: 17

Compression:

Stored size: 698 Bytes

Contents

require 'test_helper'

class WysiwygTest < ViewCase

  setup :sign_in
  teardown :teardown

  def test_form_with_trix_data_attributes_when_uploader
    visit adminpanel.new_test_object_path

    assert_equal '/adminpanel/please-overwrite-self-display_names/agregar-a-galeria', find('form')['data-trix-url'], "data-trix-url not correct"
    assert_equal 'Adminpanel::TestObject', find('form')['data-parent-class'], "data-parent-class not correct"
    assert_equal 'test_object', find('form')['data-params-key'], "data-params-key not correct"

    assert_selector 'input[name="test_object[textfile_ids][]"]'
  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/wysiwyg_test.rb
adminpanel-3.6.0 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.5.1 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.5.0 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.7 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.6 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.5 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.4 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.3 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.2 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.1 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.4.0 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.3.4 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.3.3 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.3.0 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.2.1 test/features/shared/form/wysiwyg_test.rb
adminpanel-3.2.0 test/features/shared/form/wysiwyg_test.rb