Fixes #3479 - Customer overview doesn't load on change.

This commit is contained in:
Rolf Schmidt 2021-04-29 09:59:54 +00:00 committed by Thorsten Eckel
parent 7bd2334bea
commit 34bcc21296
2 changed files with 20 additions and 2 deletions

View file

@ -1373,6 +1373,7 @@ class BulkForm extends App.Controller
@configure_attributes_ticket.push localAttribute @configure_attributes_ticket.push localAttribute
time_attribute = _.findWhere(@configure_attributes_ticket, {'name': 'pending_time'}) time_attribute = _.findWhere(@configure_attributes_ticket, {'name': 'pending_time'})
if time_attribute
time_attribute.orientation = 'top' time_attribute.orientation = 'top'
time_attribute.disableScroll = true time_attribute.disableScroll = true

View file

@ -170,4 +170,21 @@ RSpec.describe 'Ticket views', type: :system do
end end
end end
end end
context 'Customer', authenticated_as: :authenticate do
let(:customer) { create(:customer, :with_org) }
let(:ticket) { create(:ticket, customer: customer) }
def authenticate
ticket
customer
end
it 'does basic view test of tickets' do
visit 'ticket/view/my_tickets'
expect(page).to have_text(ticket.title)
click_on 'My Organization Tickets'
expect(page).to have_text(ticket.title)
end
end
end end