aboutsummaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-08-08 22:52:09 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-08-08 23:01:39 +0200
commitc99697a13e714d1ef87f047e5ad1c88f62f61f25 (patch)
tree1374eb3c058f3329ecaf9f4c2a0d3a50635cc92d /test/system
parent10086cce466dbedf1d5a08655836fe4469508249 (diff)
downloadoperum-c99697a13e714d1ef87f047e5ad1c88f62f61f25.tar.gz
operum-c99697a13e714d1ef87f047e5ad1c88f62f61f25.zip
Re-order the top bar layout
Move actions in a way that make more sense after some usage of this application. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/searches_test.rb4
-rw-r--r--test/system/things_test.rb4
2 files changed, 2 insertions, 6 deletions
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')