aboutsummaryrefslogtreecommitdiff
path: root/test/system/shared_searches_test.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-14 11:34:28 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-14 14:09:11 +0100
commit64e2bca8326bd46a2ad80b6a7a430dea0f81ff6b (patch)
treebf4d1894c45471ee1d38b6292b87e356737f2fb6 /test/system/shared_searches_test.rb
parent90feff2bfcbdb5586a459c2350a4172a4423668e (diff)
downloadoperum-64e2bca8326bd46a2ad80b6a7a430dea0f81ff6b.tar.gz
operum-64e2bca8326bd46a2ad80b6a7a430dea0f81ff6b.zip
Added rubocop-minitest
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'test/system/shared_searches_test.rb')
-rw-r--r--test/system/shared_searches_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/system/shared_searches_test.rb b/test/system/shared_searches_test.rb
index 0cfc4bd..6828dbe 100644
--- a/test/system/shared_searches_test.rb
+++ b/test/system/shared_searches_test.rb
@@ -7,9 +7,11 @@ class SharedSearchesTest < ApplicationSystemTestCase
sign_in!
find('#toggle-hidden-global-menu').click
+
assert_text I18n.t('searches.shared.title').downcase
click_on I18n.t('searches.shared.title').downcase
+
assert_text I18n.t('searches.shared.none')
end
@@ -17,8 +19,9 @@ class SharedSearchesTest < ApplicationSystemTestCase
sign_out_maybe!
visit shared_searches_path
+
assert_text I18n.t('sessions.title')
- assert page.current_path == new_sessions_path
+ assert_equal page.current_path, new_sessions_path
end
test 'shared_searches#show gives us the expected results' do
@@ -27,6 +30,7 @@ class SharedSearchesTest < ApplicationSystemTestCase
searches(:search1).update!(shared: true)
visit search_shared_path(searches(:search1))
+
assert_text things(:thing1).title
assert_text things(:thing2).title
assert_text I18n.t('comments.title')