diff --git a/test/system/sessions_test.rb b/test/system/sessions_test.rb index 958d1a5..e1d531b 100644 --- a/test/system/sessions_test.rb +++ b/test/system/sessions_test.rb @@ -15,6 +15,8 @@ class SessionsTest < ApplicationSystemTestCase login(@user.email) visit root_url + # Open the user dropdown by clicking the checkbox label + find('label[for="user-dropdown"]').click click_on "Log out", match: :first assert_text "Session was successfully destroyed"