From c99697a13e714d1ef87f047e5ad1c88f62f61f25 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 8 Aug 2025 22:52:09 +0200 Subject: Re-order the top bar layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move actions in a way that make more sense after some usage of this application. Signed-off-by: Miquel Sabaté Solà --- test/system/searches_test.rb | 4 +--- test/system/things_test.rb | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'test/system') diff --git a/test/system/searches_test.rb b/test/system/searches_test.rb index 4920102..f1f2de4 100644 --- a/test/system/searches_test.rb +++ b/test/system/searches_test.rb @@ -22,9 +22,7 @@ class SearchesTest < ApplicationSystemTestCase test 'the hidden menu should allow us to go into the searches#new url' do find('#toggle-hidden-global-menu').click - assert_text I18n.t('searches.title') - - click_on I18n.t('searches.object') + find('#new-search').click assert find('#search_body') assert_equal page.current_path, new_search_path diff --git a/test/system/things_test.rb b/test/system/things_test.rb index bb9d4ef..a67c0b1 100644 --- a/test/system/things_test.rb +++ b/test/system/things_test.rb @@ -8,9 +8,7 @@ class ThingsTest < ApplicationSystemTestCase test 'the hidden menu has a things#new link' do find('#toggle-hidden-global-menu').click - assert_text I18n.t('things.object').downcase - - click_on I18n.t('things.object').downcase + find('#new-thing').click assert_text I18n.t('activerecord.attributes.thing.title') -- cgit v1.2.3