Skip to content

Commit

Permalink
Ignore visibility of element to check for logged user
Browse files Browse the repository at this point in the history
We check ony if this link is present or not, and not if is visible or
not. In beta, this element is inside a hidden menu. This way we know
if the user has successfully logged in.

Co-authored-by: David Kang <dkang@suse.com>
  • Loading branch information
eduardoj and David Kang committed May 11, 2020
1 parent aa83cf3 commit 648efab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/spec/support/features/features_authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def login(user, password = 'buildservice')
fill_in 'password', with: password
click_button 'Log In'
end
expect(page).to have_link 'link-to-user-home'
expect(page).to have_link 'link-to-user-home', visible: false
User.session = user
end

Expand Down

0 comments on commit 648efab

Please sign in to comment.