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
3 changed files with 12 additions and 1 deletions
|
@ -37,6 +37,12 @@ class SessionsController < Devise::SessionsController
|
|||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
super
|
||||
# hide the signed_out notice
|
||||
flash[:notice] = nil
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Handle an "initial setup" state, where there's only one user, it's an admin,
|
||||
|
|
4
changelogs/unreleased/25294-remove-signed-out-msg.yml
Normal file
4
changelogs/unreleased/25294-remove-signed-out-msg.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: 'fix: removed signed_out notification'
|
||||
merge_request: 7958
|
||||
author: jnoortheen
|
|
@ -75,7 +75,8 @@ module LoginHelpers
|
|||
def logout
|
||||
find(".header-user-dropdown-toggle").click
|
||||
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
|
||||
|
||||
# Logout without JavaScript driver
|
||||
|
|
Loading…
Reference in a new issue