aboutsummaryrefslogtreecommitdiff
path: root/test/system/shared_searches_test.rb
diff options
context:
space:
mode:
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')