From 72157584a8e7f55ce55da71c3038bb0701e7aae7 Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Thu, 23 Jan 2025 18:11:09 -0500 Subject: [PATCH] [#4692] Update the publication facet spec to test the submit button --- spec/features/facets_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/features/facets_spec.rb b/spec/features/facets_spec.rb index e8f58c4b2..a2f6f0724 100644 --- a/spec/features/facets_spec.rb +++ b/spec/features/facets_spec.rb @@ -69,12 +69,11 @@ end describe 'publication date facet' do - describe 'view larger option' do + describe 'it has a submit button' do it 'shows a large version of the slider' do visit '/?f[format][]=Book' click_button 'Publication year' - click_link 'View larger' - expect(page).to have_selector('.modal-body .range_limit') + expect(page).to have_selector('.submit') end end end