summaryrefslogtreecommitdiff
path: root/test/integration/browser
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-08-15 11:31:04 -0700
committerelijah <elijah@riseup.net>2017-08-15 11:31:04 -0700
commitbc9dc8e62a01b9f961026e7d33be4d9f92763920 (patch)
tree19daae2d11e7e541cee2f3891d6f0b43c3294c77 /test/integration/browser
parent76c110035323a9082ba89459d1ef2ef598159509 (diff)
use i18n for login test
Diffstat (limited to 'test/integration/browser')
-rw-r--r--test/integration/browser/account_livecycle_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/integration/browser/account_livecycle_test.rb b/test/integration/browser/account_livecycle_test.rb
index 694ff9c..cfab444 100644
--- a/test/integration/browser/account_livecycle_test.rb
+++ b/test/integration/browser/account_livecycle_test.rb
@@ -2,6 +2,8 @@ require 'test_helper'
class AccountLivecycleTest < BrowserIntegrationTest
+ include ActionView::Helpers::SanitizeHelper
+
teardown do
Identity.destroy_all_orphaned
end
@@ -115,7 +117,7 @@ class AccountLivecycleTest < BrowserIntegrationTest
def assert_invalid_login(page)
assert page.has_selector? '.btn-primary.disabled'
- assert page.has_content? I18n.t(:invalid_user_pass)
+ assert page.has_content? sanitize(I18n.t(:invalid_user_pass), tags: [])
assert page.has_no_selector? '.btn-primary.disabled'
end