diff --git a/app/assets/stylesheets/zizia/zizia.scss b/app/assets/stylesheets/zizia/zizia.scss index d3c0c2f..f18646e 100644 --- a/app/assets/stylesheets/zizia/zizia.scss +++ b/app/assets/stylesheets/zizia/zizia.scss @@ -1 +1,6 @@ @import 'file_upload'; + +.btn { + white-space:normal !important; + word-wrap: break-word; +} diff --git a/app/views/zizia/csv_imports/new.html.erb b/app/views/zizia/csv_imports/new.html.erb index 20e3434..b2338d0 100644 --- a/app/views/zizia/csv_imports/new.html.erb +++ b/app/views/zizia/csv_imports/new.html.erb @@ -1,2 +1,3 @@ +<%= javascript_include_tag 'zizia/application' %>

Begin Your CSV Import

<%= render 'form', csv_import: @csv_import %> diff --git a/spec/dummy/spec/system/import_from_csv_spec.rb b/spec/dummy/spec/system/import_from_csv_spec.rb index e3c6db3..45db4bc 100644 --- a/spec/dummy/spec/system/import_from_csv_spec.rb +++ b/spec/dummy/spec/system/import_from_csv_spec.rb @@ -45,6 +45,8 @@ # Fill in and submit the form attach_file('csv_import[manifest]', csv_file, make_visible: true) + expect(page).to have_content('You sucessfully uploaded this CSV: all_fields.csv') + click_on 'Preview Import' # We expect to see the title of the collection on the page