spec/features/advanced_search_spec.rb in blacklight-8.1.0 vs spec/features/advanced_search_spec.rb in blacklight-8.2.0
- old
+ new
@@ -116,7 +116,13 @@
fill_in 'Title', with: 'bread'
click_on 'advanced-search-submit'
expect(page.current_url).to match(/bread/)
expect(page.current_url).not_to match(/medicine/)
end
+
+ it "clears the prepopulated fields when the Start Over button is pressed" do
+ expect(page).to have_field 'Title', with: 'medicine'
+ click_on 'Start over'
+ expect(page).not_to have_field 'Title', with: 'medicine'
+ end
end
end