fix: removed signed_out notification

test: replaced signed_out message check with check for sign_in button

fixes #25294
This commit is contained in:
jnoortheen 2016-12-06 22:32:30 +05:30
parent 87f3a66c32
commit 3c36d9dc9b
3 changed files with 12 additions and 1 deletions

View file

@ -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,

View file

@ -0,0 +1,4 @@
---
title: 'fix: removed signed_out notification'
merge_request: 7958
author: jnoortheen

View file

@ -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