Maintenance: Try to improve the stabilzation of the ticket create selenium test.
This commit is contained in:
parent
73cb552846
commit
4a2c8dd234
2 changed files with 3 additions and 2 deletions
|
@ -92,6 +92,8 @@ module CommonActions
|
||||||
#
|
#
|
||||||
def logout
|
def logout
|
||||||
visit('logout')
|
visit('logout')
|
||||||
|
|
||||||
|
wait.until_disappears { find('.user-menu .user a', wait: false) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overwrites the Capybara::Session#visit method to allow SPA navigation
|
# Overwrites the Capybara::Session#visit method to allow SPA navigation
|
||||||
|
|
|
@ -535,8 +535,7 @@ RSpec.describe 'Ticket Create', type: :system do
|
||||||
let(:customer) { create(:customer, password: 'test') }
|
let(:customer) { create(:customer, password: 'test') }
|
||||||
|
|
||||||
it 'customer user should not have agent object attributes', authenticated_as: :agent do
|
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
|
logout
|
||||||
|
|
||||||
# Re-create agent session and fetch object attributes.
|
# Re-create agent session and fetch object attributes.
|
||||||
|
|
Loading…
Reference in a new issue