fix: removed signed_out notification
test: replaced signed_out message check with check for sign_in button fixes #25294
This commit is contained in:
parent
87f3a66c32
commit
3c36d9dc9b
|
@ -37,6 +37,12 @@ class SessionsController < Devise::SessionsController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
super
|
||||||
|
# hide the signed_out notice
|
||||||
|
flash[:notice] = nil
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Handle an "initial setup" state, where there's only one user, it's an admin,
|
# Handle an "initial setup" state, where there's only one user, it's an admin,
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: 'fix: removed signed_out notification'
|
||||||
|
merge_request: 7958
|
||||||
|
author: jnoortheen
|
|
@ -75,7 +75,8 @@ module LoginHelpers
|
||||||
def logout
|
def logout
|
||||||
find(".header-user-dropdown-toggle").click
|
find(".header-user-dropdown-toggle").click
|
||||||
click_link "Sign out"
|
click_link "Sign out"
|
||||||
expect(page).to have_content('Signed out successfully')
|
# check the sign_in button
|
||||||
|
expect(page).to have_button('Sign in')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Logout without JavaScript driver
|
# Logout without JavaScript driver
|
||||||
|
|
Loading…
Reference in New Issue