blacklight-spotlight 3.0.0.alpha.10 → 3.0.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/images/blacklight/arrow-alt-circle-left.svg +1 -0
- data/app/assets/images/blacklight/arrow-alt-circle-right.svg +1 -0
- data/app/assets/images/blacklight/close.svg +1 -0
- data/app/assets/images/blacklight/zoom_in.svg +1 -0
- data/app/assets/images/blacklight/zoom_out.svg +1 -0
- data/app/assets/javascripts/spotlight/admin/{add_new_page_button.js → add_new_button.js} +7 -0
- data/app/assets/javascripts/spotlight/admin/block_mixins/autocompleteable.js +4 -4
- data/app/assets/javascripts/spotlight/admin/blocks/browse_group_categories_block.js +88 -0
- data/app/assets/javascripts/spotlight/admin/blocks/pages_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/solr_documents_base_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +8 -1
- data/app/assets/javascripts/spotlight/admin/catalog_edit.js +13 -47
- data/app/assets/javascripts/spotlight/admin/crop.es6 +6 -0
- data/app/assets/javascripts/spotlight/admin/croppable.js +1 -1
- data/app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js +37 -0
- data/app/assets/javascripts/spotlight/admin/index.js +0 -2
- data/app/assets/javascripts/spotlight/admin/{reindex_monitor.js → progress_monitor.js} +26 -4
- data/app/assets/javascripts/spotlight/admin/search_typeahead.js +2 -2
- data/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +21 -12
- data/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +9 -2
- data/app/assets/javascripts/spotlight/user/browse_group_categories.js +59 -0
- data/app/assets/javascripts/spotlight/user/index.js +1 -0
- data/app/assets/javascripts/spotlight/user/zpr_links.js.erb +29 -14
- data/app/assets/stylesheets/spotlight/_breadcrumbs.scss +8 -0
- data/app/assets/stylesheets/spotlight/_browse.scss +8 -0
- data/app/assets/stylesheets/spotlight/_catalog.scss +34 -8
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +9 -0
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +211 -83
- data/app/assets/stylesheets/spotlight/_item_text_block.scss +6 -0
- data/app/assets/stylesheets/spotlight/_modals.scss +3 -0
- data/app/assets/stylesheets/spotlight/_nestable.scss +8 -0
- data/app/assets/stylesheets/spotlight/_pages.scss +9 -4
- data/app/assets/stylesheets/spotlight/_report_a_problem.scss +5 -2
- data/app/assets/stylesheets/spotlight/_spotlight.scss +4 -0
- data/app/assets/stylesheets/spotlight/_translations.scss +6 -0
- data/app/assets/stylesheets/spotlight/_view_larger.scss +22 -0
- data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +92 -0
- data/app/assets/stylesheets/spotlight/typeahead.css +23 -23
- data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +5 -4
- data/app/controllers/concerns/spotlight/catalog.rb +7 -1
- data/app/controllers/concerns/spotlight/search_helper.rb +2 -8
- data/app/controllers/spotlight/appearances_controller.rb +0 -13
- data/app/controllers/spotlight/browse_controller.rb +12 -3
- data/app/controllers/spotlight/bulk_actions_controller.rb +62 -0
- data/app/controllers/spotlight/bulk_updates_controller.rb +67 -0
- data/app/controllers/spotlight/catalog_controller.rb +10 -9
- data/app/controllers/spotlight/concerns/application_controller.rb +13 -2
- data/app/controllers/spotlight/dashboards_controller.rb +2 -1
- data/app/controllers/spotlight/exhibits_controller.rb +1 -1
- data/app/controllers/spotlight/featured_images_controller.rb +1 -1
- data/app/controllers/spotlight/groups_controller.rb +80 -0
- data/app/controllers/spotlight/job_trackers_controller.rb +17 -0
- data/app/controllers/spotlight/pages_controller.rb +5 -8
- data/app/controllers/spotlight/resources/csv_upload_controller.rb +1 -1
- data/app/controllers/spotlight/searches_controller.rb +4 -17
- data/app/controllers/spotlight/tags_controller.rb +39 -5
- data/app/helpers/spotlight/application_helper.rb +21 -2
- data/app/helpers/spotlight/crud_link_helpers.rb +1 -1
- data/app/helpers/spotlight/job_trackers_helper.rb +31 -0
- data/app/helpers/spotlight/main_app_helpers.rb +1 -1
- data/app/helpers/spotlight/pages_helper.rb +1 -8
- data/app/helpers/spotlight/roles_helper.rb +1 -1
- data/app/jobs/concerns/spotlight/gather_documents.rb +35 -0
- data/app/jobs/concerns/spotlight/job_tracking.rb +64 -0
- data/app/jobs/concerns/spotlight/limit_concurrency.rb +33 -0
- data/app/jobs/spotlight/add_tags_job.rb +31 -0
- data/app/jobs/spotlight/add_uploads_from_csv.rb +32 -6
- data/app/jobs/spotlight/application_job.rb +8 -0
- data/app/jobs/spotlight/change_visibility_job.rb +33 -0
- data/app/jobs/spotlight/cleanup_job_trackers_job.rb +13 -0
- data/app/jobs/spotlight/default_thumbnail_job.rb +1 -3
- data/app/jobs/spotlight/process_bulk_updates_csv_job.rb +82 -0
- data/app/jobs/spotlight/reindex_exhibit_job.rb +39 -0
- data/app/jobs/spotlight/reindex_job.rb +64 -44
- data/app/jobs/spotlight/remove_tags_job.rb +31 -0
- data/app/jobs/spotlight/rename_sidecar_field_job.rb +3 -2
- data/app/jobs/spotlight/rename_tags_job.rb +33 -0
- data/app/jobs/spotlight/update_job_trackers_job.rb +20 -0
- data/app/mailers/spotlight/indexing_complete_mailer.rb +3 -2
- data/app/models/concerns/spotlight/exhibit_analytics.rb +2 -6
- data/app/models/concerns/spotlight/exhibit_defaults.rb +1 -1
- data/app/models/concerns/spotlight/exhibit_documents.rb +2 -2
- data/app/models/concerns/spotlight/resources/web.rb +1 -1
- data/app/models/concerns/spotlight/solr_document.rb +1 -1
- data/app/models/concerns/spotlight/solr_document/atomic_updates.rb +2 -2
- data/app/models/concerns/spotlight/user.rb +7 -2
- data/app/models/sir_trevor_rails/blocks/browse_group_categories_block.rb +25 -0
- data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +4 -0
- data/app/models/spotlight/ability.rb +8 -2
- data/app/models/spotlight/about_page.rb +1 -1
- data/app/models/spotlight/attachment.rb +1 -1
- data/app/models/spotlight/background_job_progress.rb +96 -0
- data/app/models/spotlight/blacklight_configuration.rb +19 -7
- data/app/models/spotlight/bulk_update.rb +8 -0
- data/app/models/spotlight/contact.rb +1 -1
- data/app/models/spotlight/custom_field.rb +3 -3
- data/app/models/spotlight/event.rb +13 -0
- data/app/models/spotlight/exhibit.rb +15 -12
- data/app/models/spotlight/feature_page.rb +1 -3
- data/app/models/spotlight/featured_image.rb +9 -3
- data/app/models/spotlight/field_metadata.rb +4 -8
- data/app/models/spotlight/group.rb +22 -0
- data/app/models/spotlight/group_member.rb +11 -0
- data/app/models/spotlight/home_page.rb +1 -1
- data/app/models/spotlight/job_tracker.rb +114 -0
- data/app/models/spotlight/page.rb +3 -5
- data/app/models/spotlight/page_configurations.rb +6 -0
- data/app/models/spotlight/page_content.rb +2 -0
- data/app/models/spotlight/resource.rb +28 -62
- data/app/models/spotlight/resources/csv_upload.rb +2 -1
- data/app/models/spotlight/resources/iiif_harvester.rb +12 -3
- data/app/models/spotlight/resources/iiif_manifest.rb +11 -7
- data/app/models/spotlight/resources/iiif_service.rb +9 -2
- data/app/models/spotlight/resources/json_upload.rb +12 -0
- data/app/models/spotlight/resources/upload.rb +25 -2
- data/app/models/spotlight/role.rb +1 -2
- data/app/models/spotlight/search.rb +5 -0
- data/app/models/spotlight/solr_document_sidecar.rb +2 -1
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +1 -1
- data/app/services/spotlight/bulk_updates_csv_template_service.rb +93 -0
- data/app/services/spotlight/etl.rb +7 -0
- data/app/services/spotlight/etl/context.rb +52 -0
- data/app/services/spotlight/etl/executor.rb +192 -0
- data/app/services/spotlight/etl/loaders.rb +12 -0
- data/app/services/spotlight/etl/pipeline.rb +81 -0
- data/app/services/spotlight/etl/solr_loader.rb +96 -0
- data/app/services/spotlight/etl/sources.rb +25 -0
- data/app/services/spotlight/etl/step.rb +82 -0
- data/app/services/spotlight/etl/transforms.rb +64 -0
- data/app/services/spotlight/exhibit_import_export_service.rb +50 -22
- data/app/services/spotlight/iiif_resource_resolver.rb +1 -1
- data/app/services/spotlight/validity_checker.rb +5 -5
- data/app/uploaders/spotlight/bulk_updates_uploader.rb +7 -0
- data/app/uploaders/spotlight/featured_image_uploader.rb +1 -1
- data/app/values/custom_field_name.rb +1 -0
- data/app/views/catalog/_add_tags.html.erb +28 -0
- data/app/views/catalog/_bulk_actions.html.erb +12 -0
- data/app/views/catalog/_change_visibility.html.erb +35 -0
- data/app/views/catalog/_curator_actions.html.erb +3 -0
- data/app/views/catalog/_remove_tags.html.erb +37 -0
- data/app/views/spotlight/about_pages/_empty.html.erb +5 -5
- data/app/views/spotlight/browse/_search.html.erb +2 -1
- data/app/views/spotlight/browse/index.html.erb +13 -0
- data/app/views/spotlight/bulk_updates/_download.html.erb +23 -0
- data/app/views/spotlight/bulk_updates/_overview.html.erb +1 -0
- data/app/views/spotlight/bulk_updates/_progress_panel.html.erb +19 -0
- data/app/views/spotlight/bulk_updates/_upload.html.erb +12 -0
- data/app/views/spotlight/bulk_updates/edit.html.erb +37 -0
- data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
- data/app/views/spotlight/catalog/_document.html.erb +2 -4
- data/app/views/spotlight/catalog/_edit_default.html.erb +2 -2
- data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +1 -1
- data/app/views/spotlight/catalog/index.iiif_json.jbuilder +22 -0
- data/app/views/spotlight/contacts/_form.html.erb +1 -1
- data/app/views/spotlight/custom_fields/_form.html.erb +1 -1
- data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
- data/app/views/spotlight/dashboards/_reindexing_activity.html.erb +6 -6
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
- data/app/views/spotlight/feature_pages/_empty.html.erb +5 -5
- data/app/views/spotlight/featured_images/_form.html.erb +1 -1
- data/app/views/spotlight/featured_images/_upload_form.html.erb +1 -1
- data/app/views/spotlight/home_pages/_empty.html.erb +3 -3
- data/app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb +9 -0
- data/app/views/spotlight/job_trackers/show.html.erb +79 -0
- data/app/views/spotlight/pages/_form.html.erb +3 -3
- data/app/views/spotlight/resources/_form.html.erb +1 -1
- data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/iiif/_form.html.erb +1 -1
- data/app/views/spotlight/resources/json_upload/_form.html.erb +2 -2
- data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
- data/app/views/spotlight/searches/_form.html.erb +12 -0
- data/app/views/spotlight/searches/_group.html.erb +27 -0
- data/app/views/spotlight/searches/index.html.erb +58 -17
- data/app/views/spotlight/shared/_curation_sidebar.html.erb +3 -0
- data/app/views/spotlight/shared/_honeypot_field.html.erb +4 -0
- data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
- data/app/views/spotlight/shared/_report_a_problem.html.erb +7 -10
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +45 -0
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +3 -3
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +4 -0
- data/app/views/spotlight/tags/_tag.html.erb +24 -0
- data/app/views/spotlight/tags/index.html.erb +12 -16
- data/app/views/spotlight/translations/_groups.html.erb +34 -0
- data/app/views/spotlight/translations/_import.html.erb +5 -5
- data/app/views/spotlight/translations/edit.html.erb +6 -0
- data/app/views/spotlight/translations/show.yaml.yamlbuilder +6 -0
- data/config/i18n-tasks.yml +8 -0
- data/config/locales/spotlight.ar.yml +32 -18
- data/config/locales/spotlight.en.yml +296 -93
- data/config/routes.rb +38 -1
- data/db/migrate/20210113092223_create_spotlight_groups.rb +23 -0
- data/db/migrate/20210122082032_create_job_trackers.rb +22 -0
- data/db/migrate/20210126123041_create_events.rb +15 -0
- data/db/migrate/20210305070001_remove_class_from_sirtrevor_image_blocks.rb +20 -0
- data/db/migrate/20210305171150_create_bulk_updates.rb +9 -0
- data/lib/generators/spotlight/install_generator.rb +23 -2
- data/lib/generators/spotlight/scaffold_resource_generator.rb +5 -13
- data/lib/generators/spotlight/templates/config/initializers/riiif.rb +7 -5
- data/lib/generators/spotlight/templates/config/initializers/sir_trevor_rails.rb +10 -0
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +3 -1
- data/lib/generators/spotlight/templates/solr/config/schema.xml +1 -1
- data/lib/migration/iiif.rb +3 -3
- data/lib/spotlight/engine.rb +29 -4
- data/lib/spotlight/upload_field_config.rb +1 -0
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/about_pages_controller_spec.rb +3 -3
- data/spec/controllers/spotlight/browse_controller_spec.rb +24 -1
- data/spec/controllers/spotlight/bulk_actions_controller_spec.rb +124 -0
- data/spec/controllers/spotlight/bulk_updates_controller_spec.rb +77 -0
- data/spec/controllers/spotlight/catalog_controller_spec.rb +15 -13
- data/spec/controllers/spotlight/contacts_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/feature_pages_controller_spec.rb +11 -0
- data/spec/controllers/spotlight/featured_images_controller_spec.rb +3 -3
- data/spec/controllers/spotlight/groups_controller_spec.rb +103 -0
- data/spec/controllers/spotlight/home_pages_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/job_trackers_controller_spec.rb +37 -0
- data/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb +4 -4
- data/spec/controllers/spotlight/searches_controller_spec.rb +10 -3
- data/spec/controllers/spotlight/tags_controller_spec.rb +5 -1
- data/spec/controllers/spotlight/view_configurations_controller_spec.rb +1 -1
- data/spec/examples.txt +1500 -125
- data/spec/factories/bulk_updates.rb +15 -0
- data/spec/factories/exhibits.rb +4 -0
- data/spec/factories/group.rb +17 -0
- data/spec/factories/job_trackers.rb +11 -0
- data/spec/factories/searches.rb +11 -1
- data/spec/factories/users.rb +27 -8
- data/spec/features/add_contacts_spec.rb +1 -1
- data/spec/features/add_items_spec.rb +10 -5
- data/spec/features/browse_category_admin_spec.rb +39 -7
- data/spec/features/browse_category_navigation_spec.rb +44 -0
- data/spec/features/browse_category_spec.rb +2 -2
- data/spec/features/bulk_actions_spec.rb +72 -0
- data/spec/features/catalog_spec.rb +3 -2
- data/spec/features/create_exhibit_spec.rb +5 -4
- data/spec/features/dashboard_spec.rb +7 -7
- data/spec/features/edit_search_fields_spec.rb +2 -2
- data/spec/features/exhibits/administration_spec.rb +3 -3
- data/spec/features/exhibits/edit_metadata_fields_spec.rb +1 -1
- data/spec/features/exhibits/language_create_edit_spec.rb +3 -3
- data/spec/features/exhibits/translation_editing_spec.rb +55 -6
- data/spec/features/home_page_spec.rb +5 -5
- data/spec/features/import_exhibit_spec.rb +5 -1
- data/spec/features/item_admin_spec.rb +4 -4
- data/spec/features/javascript/about_page_admin_spec.rb +1 -1
- data/spec/features/javascript/block_controls_spec.rb +3 -1
- data/spec/features/javascript/blocks/browse_group_categories_block_spec.rb +64 -0
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +3 -3
- data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +27 -1
- data/spec/features/javascript/browse_group_admin_spec.rb +45 -0
- data/spec/features/javascript/edit_in_place_spec.rb +3 -3
- data/spec/features/javascript/feature_page_admin_spec.rb +1 -1
- data/spec/features/javascript/reindex_monitor_spec.rb +1 -1
- data/spec/features/javascript/search_config_admin_spec.rb +1 -1
- data/spec/features/report_a_problem_spec.rb +6 -5
- data/spec/features/site_users_management_spec.rb +5 -5
- data/spec/fixtures/bulk-update-template.csv +57 -0
- data/spec/fixtures/updated-bulk-update-template-w-tags.csv +4 -0
- data/spec/fixtures/updated-bulk-update-template.csv +4 -0
- data/spec/helpers/spotlight/application_helper_spec.rb +0 -1
- data/spec/helpers/spotlight/crud_link_helpers_spec.rb +3 -3
- data/spec/helpers/spotlight/pages_helper_spec.rb +10 -17
- data/spec/helpers/spotlight/roles_helper_spec.rb +1 -1
- data/spec/i18n_spec.rb +1 -0
- data/spec/jobs/spotlight/add_tags_job_spec.rb +34 -0
- data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +16 -1
- data/spec/jobs/spotlight/change_visibility_job_spec.rb +30 -0
- data/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb +78 -0
- data/spec/jobs/spotlight/reindex_exhibit_job_spec.rb +43 -0
- data/spec/jobs/spotlight/reindex_job_spec.rb +34 -60
- data/spec/jobs/spotlight/remove_tags_job_spec.rb +39 -0
- data/spec/lib/migration/iiif_spec.rb +1 -1
- data/spec/mailers/spotlight/indexing_complete_mailer_spec.rb +11 -1
- data/spec/models/sir_trevor_rails/blocks/browse_group_categories_block_spec.rb +41 -0
- data/spec/models/solr_document_spec.rb +2 -3
- data/spec/models/spotlight/ability_spec.rb +27 -0
- data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +1 -0
- data/spec/models/spotlight/background_job_progress_spec.rb +137 -0
- data/spec/models/spotlight/blacklight_configuration_spec.rb +8 -3
- data/spec/models/spotlight/exhibit_spec.rb +13 -59
- data/spec/models/spotlight/featured_image_spec.rb +1 -2
- data/spec/models/spotlight/group_spec.rb +19 -0
- data/spec/models/spotlight/main_navigation_spec.rb +1 -1
- data/spec/models/spotlight/resource_spec.rb +89 -87
- data/spec/models/spotlight/resources/iiif_harvester_spec.rb +9 -10
- data/spec/models/spotlight/role_spec.rb +3 -3
- data/spec/models/spotlight/search_spec.rb +30 -3
- data/spec/models/spotlight/solr_document/atomic_updates_spec.rb +10 -0
- data/spec/models/spotlight/solr_document_sidecar_spec.rb +1 -0
- data/spec/services/spotlight/bulk_updates_csv_template_service_spec.rb +26 -0
- data/spec/services/spotlight/etl/context_spec.rb +66 -0
- data/spec/services/spotlight/etl/executor_spec.rb +149 -0
- data/spec/services/spotlight/etl/pipeline_spec.rb +22 -0
- data/spec/services/spotlight/etl/solr_loader_spec.rb +76 -0
- data/spec/services/spotlight/etl/step_spec.rb +70 -0
- data/spec/services/spotlight/exhibit_import_export_service_spec.rb +62 -3
- data/spec/services/spotlight/iiif_resource_resolver_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -6
- data/spec/support/features/test_features_helpers.rb +15 -0
- data/spec/test_app_templates/Gemfile.extra +2 -3
- data/spec/test_app_templates/catalog_controller.rb +6 -3
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/spec/uploaders/spotlight/featured_image_uploader_spec.rb +2 -2
- data/spec/views/shared/_exhibit_navbar.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/browse/index.html.erb_spec.rb +2 -0
- data/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +30 -25
- data/spec/views/spotlight/job_trackers/show.html.erb_spec.rb +65 -0
- data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/pages/show.html.erb_spec.rb +1 -0
- data/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +7 -8
- data/spec/views/spotlight/tags/index.html.erb_spec.rb +5 -2
- data/vendor/assets/javascripts/leaflet-iiif.js +46 -21
- data/vendor/assets/javascripts/tiny-slider.js +3218 -0
- data/vendor/assets/stylesheets/tiny-slider.css +1 -0
- metadata +511 -296
- data/app/assets/images/blacklight/add_circle.svg +0 -1
- data/app/assets/images/blacklight/custom_fullscreen.svg +0 -1
- data/app/assets/images/blacklight/remove_circle.svg +0 -1
- data/app/assets/images/blacklight/resize_small.svg +0 -1
- data/app/models/concerns/spotlight/resources/open_graph.rb +0 -36
- data/app/models/spotlight/reindex_progress.rb +0 -78
- data/app/models/spotlight/reindexing_log_entry.rb +0 -42
- data/app/services/spotlight/resources/iiif_builder.rb +0 -19
- data/app/services/spotlight/solr_document_builder.rb +0 -76
- data/app/services/spotlight/upload_solr_document_builder.rb +0 -57
- data/spec/factories/reindexing_log_entries.rb +0 -54
- data/spec/models/spotlight/reindex_progress_spec.rb +0 -122
- data/spec/models/spotlight/reindexing_log_entry_spec.rb +0 -129
- data/spec/models/spotlight/resources/open_graph_spec.rb +0 -65
- data/spec/services/spotlight/solr_document_builder_spec.rb +0 -66
- data/vendor/assets/javascripts/handlebars-v1.3.0.js +0 -2746
@@ -24,7 +24,7 @@ describe 'Create a new exhibit', type: :feature do
|
|
24
24
|
|
25
25
|
fill_in 'Title', with: 'My exhibit title'
|
26
26
|
|
27
|
-
|
27
|
+
find('input[name="commit"]').click
|
28
28
|
|
29
29
|
expect(page).to have_content 'The exhibit was created.'
|
30
30
|
expect(Spotlight::Exhibit.last.slug).to eq 'my-exhibit-title'
|
@@ -39,7 +39,7 @@ describe 'Create a new exhibit', type: :feature do
|
|
39
39
|
fill_in 'Title', with: 'My exhibit title'
|
40
40
|
fill_in 'URL slug', with: 'custom-slug'
|
41
41
|
|
42
|
-
|
42
|
+
find('input[name="commit"]').click
|
43
43
|
|
44
44
|
expect(page).to have_content 'The exhibit was created.'
|
45
45
|
expect(Spotlight::Exhibit.last.slug).to eq 'custom-slug'
|
@@ -51,14 +51,15 @@ describe 'Create a new exhibit', type: :feature do
|
|
51
51
|
fill_in 'Title', with: 'My exhibit title'
|
52
52
|
fill_in 'URL slug', with: 'custom-slug'
|
53
53
|
|
54
|
-
|
54
|
+
find('input[name="commit"]').click
|
55
55
|
|
56
56
|
visit spotlight.new_exhibit_path
|
57
57
|
|
58
58
|
fill_in 'Title', with: 'My exhibit title'
|
59
59
|
fill_in 'URL slug', with: 'custom-slug'
|
60
60
|
|
61
|
-
|
61
|
+
find('input[name="commit"]').click
|
62
|
+
|
62
63
|
expect(page).to have_content 'has already been taken'
|
63
64
|
end
|
64
65
|
end
|
@@ -2,11 +2,6 @@
|
|
2
2
|
|
3
3
|
describe 'Dashboard', type: :feature do
|
4
4
|
let(:exhibit) { FactoryBot.create(:exhibit) }
|
5
|
-
let(:admin) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) }
|
6
|
-
before do
|
7
|
-
login_as(admin)
|
8
|
-
end
|
9
|
-
|
10
5
|
let!(:parent_feature_page) do
|
11
6
|
FactoryBot.create(:feature_page, title: 'Parent Page', exhibit: exhibit)
|
12
7
|
end
|
@@ -18,17 +13,22 @@ describe 'Dashboard', type: :feature do
|
|
18
13
|
exhibit: exhibit
|
19
14
|
)
|
20
15
|
end
|
16
|
+
let(:admin) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) }
|
17
|
+
|
18
|
+
before do
|
19
|
+
login_as(admin)
|
20
|
+
end
|
21
21
|
|
22
22
|
it 'includes a list of recently edited feature pages' do
|
23
23
|
visit spotlight.exhibit_dashboard_path(exhibit)
|
24
|
-
expect(page).to have_content 'Recent
|
24
|
+
expect(page).to have_content 'Recent site building activity'
|
25
25
|
expect(page).to have_content 'Parent Page'
|
26
26
|
expect(page).to have_content 'Child Page'
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'includes a list of recently indexed items' do
|
30
30
|
visit spotlight.exhibit_dashboard_path(exhibit)
|
31
|
-
expect(page).to have_content 'Recently
|
31
|
+
expect(page).to have_content 'Recently updated items'
|
32
32
|
expect(page).to have_selector('#documents')
|
33
33
|
end
|
34
34
|
end
|
@@ -54,7 +54,7 @@ describe 'Search Administration', type: :feature do
|
|
54
54
|
visit spotlight.edit_exhibit_search_configuration_path(exhibit)
|
55
55
|
|
56
56
|
expect(page).to have_css("input[name='blacklight_configuration[sort_fields][relevance][enable]'][disabled='disabled']")
|
57
|
-
expect(page).to have_css('#nested-sort-fields .dd-item:nth-child(5) h3', text: '
|
57
|
+
expect(page).to have_css('#nested-sort-fields .dd-item:nth-child(5) h3', text: 'date (new to old)')
|
58
58
|
|
59
59
|
uncheck 'blacklight_configuration_sort_fields_title_enabled'
|
60
60
|
uncheck 'blacklight_configuration_sort_fields_identifier_enabled'
|
@@ -72,7 +72,7 @@ describe 'Search Administration', type: :feature do
|
|
72
72
|
expect(find('#blacklight_configuration_sort_fields_identifier_enabled')).not_to be_checked
|
73
73
|
|
74
74
|
# Type is now sorted last
|
75
|
-
expect(page).to have_css('#nested-sort-fields .dd-item:nth-child(5) h3', text: '
|
75
|
+
expect(page).to have_css('#nested-sort-fields .dd-item:nth-child(5) h3', text: 'type')
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
@@ -63,9 +63,9 @@ describe 'Exhibit Administration', type: :feature do
|
|
63
63
|
it 'updates the aria-labels properly', js: true do
|
64
64
|
visit spotlight.edit_exhibit_path(exhibit)
|
65
65
|
|
66
|
-
expect(find_field(email_id_0)['aria-label']).to eq '
|
66
|
+
expect(find_field(email_id_0)['aria-label']).to eq 'Recipient email 1'
|
67
67
|
find('#another-email').click
|
68
|
-
expect(find_field(email_id_1)['aria-label']).to eq '
|
68
|
+
expect(find_field(email_id_1)['aria-label']).to eq 'Recipient email 2'
|
69
69
|
end
|
70
70
|
|
71
71
|
it 'allows deletion of contact email addresses', js: true do
|
@@ -135,7 +135,7 @@ describe 'Exhibit Administration', type: :feature do
|
|
135
135
|
find_all('.contact-email-delete').first.click
|
136
136
|
end
|
137
137
|
|
138
|
-
expect(page).to have_css("##{hidden_input_id_0}~div span.contact-email-delete-error", text: 'Problem deleting
|
138
|
+
expect(page).to have_css("##{hidden_input_id_0}~div span.contact-email-delete-error", text: 'Problem deleting recipient: Not Found')
|
139
139
|
end
|
140
140
|
end
|
141
141
|
end
|
@@ -9,7 +9,7 @@ describe 'Editing metadata fields', type: :feature do
|
|
9
9
|
it 'works' do
|
10
10
|
visit spotlight.edit_exhibit_metadata_configuration_path exhibit
|
11
11
|
|
12
|
-
expect(page).to have_content 'Display and
|
12
|
+
expect(page).to have_content 'Display and order metadata fields'
|
13
13
|
|
14
14
|
check :blacklight_configuration_index_fields_language_ssm_show
|
15
15
|
check :blacklight_configuration_index_fields_abstract_tesim_show
|
@@ -13,7 +13,7 @@ describe 'Language', type: :feature do
|
|
13
13
|
it 'successfully adds languages' do
|
14
14
|
within '#language' do
|
15
15
|
select 'Albanian'
|
16
|
-
|
16
|
+
find('input[name="commit"]').click
|
17
17
|
end
|
18
18
|
expect(page).to have_css '.flash_messages', text: 'The language was created.'
|
19
19
|
within '#language' do
|
@@ -27,7 +27,7 @@ describe 'Language', type: :feature do
|
|
27
27
|
it 'successfully updates the language' do
|
28
28
|
within '#language' do
|
29
29
|
select 'Albanian'
|
30
|
-
|
30
|
+
find('input[name="commit"]').click
|
31
31
|
end
|
32
32
|
expect(page).to have_css '.flash_messages', text: 'The language was created.'
|
33
33
|
within '#language' do
|
@@ -43,7 +43,7 @@ describe 'Language', type: :feature do
|
|
43
43
|
it 'successfully updates the language' do
|
44
44
|
within '#language' do
|
45
45
|
select 'Albanian'
|
46
|
-
|
46
|
+
find('input[name="commit"]').click
|
47
47
|
end
|
48
48
|
expect(page).to have_css '.flash_messages', text: 'The language was created.'
|
49
49
|
within '#language' do
|
@@ -148,7 +148,7 @@ describe 'Translation editing', type: :feature do
|
|
148
148
|
before do
|
149
149
|
within '.translation-edit-form #general' do
|
150
150
|
fill_in 'Home', with: 'Maison'
|
151
|
-
fill_in 'Search
|
151
|
+
fill_in 'Search results', with: 'Résultats de la recherche'
|
152
152
|
click_button 'Save changes'
|
153
153
|
end
|
154
154
|
end
|
@@ -310,7 +310,7 @@ describe 'Translation editing', type: :feature do
|
|
310
310
|
click_link 'Search field labels'
|
311
311
|
|
312
312
|
within('#search_fields', visible: true) do
|
313
|
-
fill_in '
|
313
|
+
fill_in 'relevance', with: 'French Relevance'
|
314
314
|
click_button 'Save changes'
|
315
315
|
end
|
316
316
|
|
@@ -333,7 +333,7 @@ describe 'Translation editing', type: :feature do
|
|
333
333
|
expect(page).to have_css('input[type="text"]', count: 4)
|
334
334
|
expect(page).to have_css('textarea', count: 2)
|
335
335
|
|
336
|
-
expect(page).to have_field 'All
|
336
|
+
expect(page).to have_field 'All exhibit items'
|
337
337
|
expect(page).to have_field 'Browse Category 1'
|
338
338
|
expect(page).to have_css('.form-text', text: 'All items in this exhibit.')
|
339
339
|
end
|
@@ -342,7 +342,7 @@ describe 'Translation editing', type: :feature do
|
|
342
342
|
it 'redirects to the same form tab' do
|
343
343
|
click_link 'Browse categories'
|
344
344
|
within('#browse', visible: true) do
|
345
|
-
fill_in 'All
|
345
|
+
fill_in 'All exhibit items', with: "Tous les objets d'exposition"
|
346
346
|
click_button 'Save changes'
|
347
347
|
end
|
348
348
|
|
@@ -354,7 +354,7 @@ describe 'Translation editing', type: :feature do
|
|
354
354
|
click_link 'Browse categories'
|
355
355
|
|
356
356
|
within('#browse', visible: true) do
|
357
|
-
fill_in 'All
|
357
|
+
fill_in 'All exhibit items', with: "Tous les objets d'exposition"
|
358
358
|
|
359
359
|
first('.translation-description-toggle').click
|
360
360
|
|
@@ -366,7 +366,7 @@ describe 'Translation editing', type: :feature do
|
|
366
366
|
|
367
367
|
expect(page).to have_css('.flash_messages', text: 'The exhibit was successfully updated.')
|
368
368
|
|
369
|
-
expect(exhibit.searches.first.title).to eq 'All
|
369
|
+
expect(exhibit.searches.first.title).to eq 'All exhibit items'
|
370
370
|
expect(exhibit.searches.first.long_description).to eq 'All items in this exhibit.'
|
371
371
|
|
372
372
|
I18n.locale = :fr
|
@@ -378,6 +378,55 @@ describe 'Translation editing', type: :feature do
|
|
378
378
|
end
|
379
379
|
end
|
380
380
|
|
381
|
+
describe 'Browse groups' do
|
382
|
+
before do
|
383
|
+
FactoryBot.create(:group, exhibit: exhibit, title: 'Browse Group 1')
|
384
|
+
FactoryBot.create(:group, exhibit: exhibit, title: 'Browse Group 2')
|
385
|
+
|
386
|
+
visit spotlight.edit_exhibit_translations_path(exhibit, language: 'fr')
|
387
|
+
end
|
388
|
+
|
389
|
+
it 'has a title browse group' do
|
390
|
+
within '#groups' do
|
391
|
+
expect(page).to have_css('input[type="text"]', count: 2)
|
392
|
+
|
393
|
+
expect(page).to have_field 'Browse Group 1'
|
394
|
+
expect(page).to have_field 'Browse Group 2'
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
it 'redirects to the same form tab' do
|
399
|
+
click_link 'Browse categories'
|
400
|
+
within('#groups', visible: true) do
|
401
|
+
fill_in 'Browse Group 1', with: 'parcourir le groupe 1'
|
402
|
+
click_button 'Save changes'
|
403
|
+
end
|
404
|
+
|
405
|
+
expect(page).to have_css '.nav-pills .nav-link.active', text: 'French'
|
406
|
+
expect(page).to have_css '.nav-tabs .nav-link.active', text: 'Browse groups'
|
407
|
+
end
|
408
|
+
|
409
|
+
it 'persists changes', js: true do
|
410
|
+
click_link 'Browse groups'
|
411
|
+
|
412
|
+
within('#groups', visible: true) do
|
413
|
+
fill_in 'Browse Group 1', with: 'parcourir le groupe 1'
|
414
|
+
|
415
|
+
click_button 'Save changes'
|
416
|
+
end
|
417
|
+
|
418
|
+
expect(page).to have_css('.flash_messages', text: 'The exhibit was successfully updated.')
|
419
|
+
|
420
|
+
expect(exhibit.groups.first.title).to eq 'Browse Group 1'
|
421
|
+
|
422
|
+
I18n.locale = :fr
|
423
|
+
Translation.current_exhibit = exhibit
|
424
|
+
expect(exhibit.groups.first.title).to eq 'parcourir le groupe 1'
|
425
|
+
I18n.locale = I18n.default_locale
|
426
|
+
Translation.current_exhibit = nil
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
381
430
|
describe 'home page translation table entry' do
|
382
431
|
let(:feature_page) { FactoryBot.create(:feature_page, exhibit: exhibit) }
|
383
432
|
let(:about_page) { FactoryBot.create(:about_page, exhibit: exhibit) }
|
@@ -10,7 +10,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
10
10
|
visit spotlight.exhibit_dashboard_path(exhibit)
|
11
11
|
click_link 'Feature pages'
|
12
12
|
expect(page).to have_selector 'h2', text: 'Homepage'
|
13
|
-
expect(page).to have_selector 'h3.card-title', text: 'Exhibit
|
13
|
+
expect(page).to have_selector 'h3.card-title', text: 'Exhibit home'
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'allows users to edit the home page title' do
|
@@ -32,7 +32,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'redirects back to the correct home page URL after updating (no format param to interfere w/ faceting)' do
|
35
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
35
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
36
36
|
|
37
37
|
click_link 'Edit'
|
38
38
|
click_button 'Save changes'
|
@@ -41,7 +41,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'has working facet links' do
|
44
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
44
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
45
45
|
click_button 'Genre'
|
46
46
|
click_link 'map'
|
47
47
|
expect(page).to have_content exhibit.title
|
@@ -49,7 +49,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'has a search box' do
|
52
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
52
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
53
53
|
fill_in 'q', with: 'query'
|
54
54
|
click_button 'Search'
|
55
55
|
|
@@ -62,7 +62,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
62
62
|
TopHat.current['opengraph'] = nil
|
63
63
|
Spotlight::Site.instance.update(title: 'some title')
|
64
64
|
|
65
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
65
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
66
66
|
|
67
67
|
expect(page).to have_css "meta[name='twitter:card'][value='summary']", visible: false
|
68
68
|
expect(page).to have_css "meta[name='twitter:url'][value='#{spotlight.exhibit_root_url(exhibit)}']", visible: false
|
@@ -6,7 +6,11 @@ describe 'Allow exhibit admins to import and export content from an exhibit', ty
|
|
6
6
|
let(:exhibit) { FactoryBot.create(:exhibit) }
|
7
7
|
let(:user) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) }
|
8
8
|
|
9
|
-
before
|
9
|
+
before do
|
10
|
+
allow(Spotlight::ReindexExhibitJob).to receive(:perform_later).and_return(true) if Rails.version < '6'
|
11
|
+
|
12
|
+
login_as user
|
13
|
+
end
|
10
14
|
|
11
15
|
pending 'should allow admins to export content from an exhibit' do
|
12
16
|
pending(%(There's not really any good way to test the contents of a
|
@@ -30,12 +30,12 @@ describe 'Item Administration', type: :feature do
|
|
30
30
|
it 'has a public/private toggle' do
|
31
31
|
visit spotlight.admin_exhibit_catalog_path(exhibit)
|
32
32
|
item = first('tr[itemscope]')
|
33
|
-
expect(item).to have_button 'Make
|
34
|
-
item.click_button 'Make
|
33
|
+
expect(item).to have_button 'Make private'
|
34
|
+
item.click_button 'Make private'
|
35
35
|
|
36
36
|
item = first('tr[itemscope]')
|
37
|
-
expect(item).to have_button 'Make
|
38
|
-
item.click_button 'Make
|
37
|
+
expect(item).to have_button 'Make public'
|
38
|
+
item.click_button 'Make public'
|
39
39
|
end
|
40
40
|
|
41
41
|
it "toggles the 'blacklight-private' label", js: true, default_max_wait_time: 5 do
|
@@ -12,7 +12,7 @@ describe 'About Pages Adminstration', js: true do
|
|
12
12
|
|
13
13
|
click_link 'About pages'
|
14
14
|
|
15
|
-
|
15
|
+
add_new_via_button('My New Page')
|
16
16
|
|
17
17
|
expect(page).to have_content 'The about page was created.'
|
18
18
|
expect(page).to have_css('li.dd-item')
|
@@ -12,7 +12,7 @@ describe 'Block controls' do
|
|
12
12
|
|
13
13
|
click_link 'Feature pages'
|
14
14
|
|
15
|
-
|
15
|
+
add_new_via_button('My New Feature Page')
|
16
16
|
|
17
17
|
expect(page).to have_css('h3', text: 'My New Feature Page')
|
18
18
|
|
@@ -27,10 +27,12 @@ describe 'Block controls' do
|
|
27
27
|
|
28
28
|
within('.spotlight-block-controls') do
|
29
29
|
expect(page).to have_css('.st-controls-group', count: 2)
|
30
|
+
|
30
31
|
within(first('.st-controls-group')) do
|
31
32
|
expect(page).to have_content 'Standard widgets'
|
32
33
|
expect(page).to have_css('.st-block-controls__button')
|
33
34
|
end
|
35
|
+
|
34
36
|
within(all('.st-controls-group').last) do
|
35
37
|
expect(page).to have_content 'Exhibit item widgets'
|
36
38
|
expect(page).to have_css('.st-block-controls__button')
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe 'Browse Group Categories', type: :feature, js: true do
|
4
|
+
let(:exhibit) { FactoryBot.create(:exhibit) }
|
5
|
+
let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }
|
6
|
+
|
7
|
+
let(:feature_page) { FactoryBot.create(:feature_page, exhibit: exhibit) }
|
8
|
+
let(:search1) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good dogs') }
|
9
|
+
let(:search2) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good cats') }
|
10
|
+
let(:search3) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good birds') }
|
11
|
+
let(:search4) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good pigs') }
|
12
|
+
let(:search5) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good tigers') }
|
13
|
+
let(:search6) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good ferrets') }
|
14
|
+
let(:search7) { FactoryBot.create(:search, exhibit: exhibit, title: 'All of the good turtles') }
|
15
|
+
let!(:group) { FactoryBot.create(:group, exhibit: exhibit, searches: [search1, search2, search3, search4, search5, search6], title: 'Pets', published: true) }
|
16
|
+
let!(:group2) { FactoryBot.create(:group, exhibit: exhibit, searches: [search1, search2], title: 'Good animals', published: true) }
|
17
|
+
|
18
|
+
before do
|
19
|
+
login_as exhibit_curator
|
20
|
+
|
21
|
+
visit spotlight.edit_exhibit_feature_page_path(exhibit, feature_page)
|
22
|
+
add_widget 'browse_group_categories'
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'allows a curator to select a caption to display' do
|
26
|
+
fill_in_prefetched_typeahead_field with: 'Pets', wait_for: '[data-type="browse_group_categories"] [data-browse-groups-fetched]'
|
27
|
+
within '.dd-list' do
|
28
|
+
expect(page).to have_css '.title', text: 'Pets'
|
29
|
+
end
|
30
|
+
|
31
|
+
save_page
|
32
|
+
|
33
|
+
expect(page).to have_css 'h2', text: 'Pets'
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'can navigate using arrows' do
|
37
|
+
fill_in_prefetched_typeahead_field with: 'Pets', wait_for: '[data-type="browse_group_categories"] [data-browse-groups-fetched]'
|
38
|
+
within '.dd-list' do
|
39
|
+
expect(page).to have_css '.title', text: 'Pets'
|
40
|
+
end
|
41
|
+
|
42
|
+
save_page
|
43
|
+
|
44
|
+
expect(page).to have_css 'h2', text: 'Pets'
|
45
|
+
|
46
|
+
expect(page).to have_css '.category-title', text: 'All of the good dogs'
|
47
|
+
expect(page).not_to have_css '.category-title', text: 'All of the good tigers'
|
48
|
+
find('[data-controls="next"]').click
|
49
|
+
expect(page).not_to have_css '.category-title', text: 'All of the good dogs'
|
50
|
+
expect(page).to have_css '.category-title', text: 'All of the good tigers'
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'only published searches are displayed' do
|
54
|
+
fill_in_prefetched_typeahead_field with: 'Pets', wait_for: '[data-type="browse_group_categories"] [data-browse-groups-fetched]'
|
55
|
+
within '.dd-list' do
|
56
|
+
expect(page).to have_css '.title', text: 'Pets'
|
57
|
+
end
|
58
|
+
|
59
|
+
save_page
|
60
|
+
|
61
|
+
expect(page).to have_css 'h2', text: 'Pets'
|
62
|
+
expect(page).to have_css '.box.category-1', count: 6, visible: false
|
63
|
+
end
|
64
|
+
end
|
@@ -142,14 +142,14 @@ describe 'Solr Document Block', feature: true, versioning: true, default_max_wai
|
|
142
142
|
it 'allows you to optionally display a ZPR link with the image', js: true do
|
143
143
|
fill_in_solr_document_block_typeahead_field with: 'gk446cj2442'
|
144
144
|
|
145
|
-
check '
|
145
|
+
check 'Offer "View larger" option'
|
146
146
|
# this seems silly, but also seems to help with the flappy-ness of this spec
|
147
|
-
expect(find_field('
|
147
|
+
expect(find_field('Offer "View larger" option', checked: true)).to be_checked
|
148
148
|
|
149
149
|
save_page
|
150
150
|
|
151
151
|
within '.contents' do
|
152
|
-
click_button '
|
152
|
+
click_button 'View [World map] larger'
|
153
153
|
end
|
154
154
|
|
155
155
|
within '.modal-content' do
|