diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 5f47de2258f5aec688a8ce0a9831ce210e2f7e34..7db232e3dfc51eefdbdfd7f7ae4e962795a110a8 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -37,8 +37,9 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase def log_out within :css, '.header' do find(:css, 'i.far.fa-caret-square-down').find(:xpath, '..').click - click_on 'Sign Out' end + + find_link('Sign Out').click end # Pretends the user has clicked the confirmation link in the email they received.