Merge pull request #6133 from overleaf/ta-synctex-test-fix

Fix synctex test after merge

GitOrigin-RevId: 66e9adf6ccc29acd8119176ecd903914b03946c1
This commit is contained in:
Timothée Alby 2021-12-14 14:58:09 +01:00 committed by Copybot
parent 00e792b022
commit adf26344fb

View file

@ -219,6 +219,14 @@ describe('<PdfSynctexControls/>', function () {
name: 'Go to code location in PDF',
})
// mock editor cursor position update
fireEvent(
window,
new CustomEvent('cursor:editor:update', {
detail: { row: 100, column: 10 },
})
)
sysendTestHelper.receiveMessage({
role: 'detached',
event: 'state-sync-to-pdf-inflight',