Skip to content

Commit

Permalink
Change count language on preview screen
Browse files Browse the repository at this point in the history
The format of the CSV files has changed so that
a single row is not a work. The count available
on the preview screen is a count of rows. This
changes the language to reflect that the number
is a count of rows and not records/works.

Connected to https://github.com/curationexperts/in-house/issues/43
  • Loading branch information
little9 committed Nov 8, 2019
1 parent c3d48ee commit f01dacd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/views/zizia/csv_imports/_record_count.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="row">
<div class="col-md-8">
<div class="alert alert-success">
<p> This import will create or update <%= @csv_import.manifest_records %> records. </p>
<p> This import will process <%= @csv_import.manifest_records %> row(s). </p>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion spec/dummy/spec/system/import_csv_with_warnings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# We expect to see the title of the collection on the page
expect(page).to have_content 'Testing Collection'

expect(page).to have_content 'This import will create or update 3 records.'
expect(page).to have_content 'This import will process 3 row(s).'

# There is a link so the user can cancel.
expect(page).to have_link 'Cancel', href: '/csv_imports/new?locale=en'
Expand Down
9 changes: 4 additions & 5 deletions spec/dummy/spec/system/import_from_csv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# We expect to see the title of the collection on the page
expect(page).to have_content 'Testing Collection'

expect(page).to have_content 'This import will create or update 1 records.'
expect(page).to have_content 'This import will process 1 row(s).'

# There is a link so the user can cancel.
expect(page).to have_link 'Cancel', href: '/csv_imports/new?locale=en'
Expand Down Expand Up @@ -116,7 +116,7 @@
# We expect to see the title of the collection on the page
expect(page).to have_content 'Testing Collection'

expect(page).to have_content 'This import will create or update 1 records.'
expect(page).to have_content 'This import will process 1 row(s).'
# There is a link so the user can cancel.
expect(page).to have_link 'Cancel', href: '/csv_imports/new?locale=en'

Expand Down Expand Up @@ -171,7 +171,7 @@
# We expect to see the title of the collection on the page
expect(page).to have_content 'Testing Collection'

expect(page).to have_content 'This import will create or update 2 records.'
expect(page).to have_content 'This import will process 2 row(s).'

# There is a link so the user can cancel.
expect(page).to have_link 'Cancel', href: '/csv_imports/new?locale=en'
Expand Down Expand Up @@ -218,8 +218,7 @@
# We expect to see the title of the collection on the page
expect(page).to have_content 'Testing Collection'

expect(page).to have_content 'This import will create or update 1 records.'

expect(page).to have_content 'This import will process 1 row(s).'
# There is a link so the user can cancel.
expect(page).to have_link 'Cancel', href: '/csv_imports/new?locale=en'

Expand Down

0 comments on commit f01dacd

Please sign in to comment.