From acd25165aba6386403d42701c11c5ef133f173a0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 10 Sep 2025 17:14:46 +0200 Subject: search: Only show the 'Save' link upon change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous behavior of just toggling between 'hidden' classes was just too naive, we need to check that the value has changed from the initial one in order to show that to the user. Signed-off-by: Miquel Sabaté Solà --- test/system/searches_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/system') diff --git a/test/system/searches_test.rb b/test/system/searches_test.rb index f1f2de4..e3b4993 100644 --- a/test/system/searches_test.rb +++ b/test/system/searches_test.rb @@ -90,6 +90,9 @@ class SearchesTest < ApplicationSystemTestCase test 'edit an existing search works' do visit edit_search_url(searches(:search1)) + # Fill in the body input and press enter, otherwise the javascript + # controller won't fire up. + fill_in 'search_body', with: 'Autor' find('#search_body').native.send_keys(:return) # Hit the save button so the hidden form appears. -- cgit v1.2.3