Skip to content

Commit

Permalink
Maintenance: Try to improve the stabilzation of the ticket create sel…
Browse files Browse the repository at this point in the history
…enium test.
  • Loading branch information
dominikklein committed Oct 7, 2021
1 parent 73cb552 commit 4a2c8dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions spec/support/capybara/common_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def current_user
#
def logout
visit('logout')

wait.until_disappears { find('.user-menu .user a', wait: false) }
end

# Overwrites the Capybara::Session#visit method to allow SPA navigation
Expand Down
3 changes: 1 addition & 2 deletions spec/system/ticket/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,7 @@ def authenticate
let(:customer) { create(:customer, password: 'test') }

it 'customer user should not have agent object attributes', authenticated_as: :agent do
visit 'ticket/create'

# Log out again, so that we can execute the next login.
logout

# Re-create agent session and fetch object attributes.
Expand Down

0 comments on commit 4a2c8dd

Please sign in to comment.