From 22a0cf6ba6b8c014fa94e6af9f6f50f53eb5d178 Mon Sep 17 00:00:00 2001
From: Taico Aerts <t.v.aerts@tudelft.nl>
Date: Wed, 2 Aug 2023 18:20:18 +0200
Subject: [PATCH] Fix logout helper

---
 test/application_system_test_case.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb
index 5f47de225..7db232e3d 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.
-- 
GitLab