Fixes #3736 - scrollPageHeader disappears when answering via email.
This commit is contained in:
parent
2f72ac96d0
commit
85cee64c73
2 changed files with 23 additions and 2 deletions
|
@ -454,8 +454,10 @@ class App.TicketZoom extends App.Controller
|
|||
App.TaskManager.touch(@taskKey)
|
||||
|
||||
if !@renderDone
|
||||
@renderDone = true
|
||||
@autosaveLast = {}
|
||||
@renderDone = true
|
||||
@autosaveLast = {}
|
||||
@scrollHeaderPos = undefined
|
||||
|
||||
elLocal = $(App.view('ticket_zoom')
|
||||
ticket: @ticket
|
||||
nav: @nav
|
||||
|
|
|
@ -270,6 +270,25 @@ RSpec.describe 'Ticket zoom', type: :system do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'scrollPageHeader disappears when answering via email #3736' do
|
||||
let(:ticket) do
|
||||
ticket = create(:ticket, group: Group.first)
|
||||
create_list(:ticket_article, 15, ticket: ticket)
|
||||
ticket
|
||||
end
|
||||
|
||||
before do
|
||||
visit "ticket/zoom/#{ticket.id}"
|
||||
end
|
||||
|
||||
it 'does reset the scrollPageHeader on rerender of the ticket' do
|
||||
select User.find_by(email: 'admin@example.com').fullname, from: 'Owner'
|
||||
find('.js-textarea').send_keys('test 1234')
|
||||
find('.js-submit').click
|
||||
expect(page).to have_selector('div.scrollPageHeader .js-ticketTitleContainer')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'delete article', authenticated_as: :authenticate do
|
||||
|
|
Loading…
Reference in a new issue