mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 18:51:11 +00:00
Fix test (#8130)
GitOrigin-RevId: abb8cd37298c4c0ded4040401889127c27625562
This commit is contained in:
parent
3fc00786ea
commit
30e1af40c3
1 changed files with 10 additions and 1 deletions
|
@ -208,8 +208,17 @@ describe('<PdfSynctexControls/>', function () {
|
|||
}).should('be.disabled')
|
||||
|
||||
cy.wait('@sync-code').should(() => {
|
||||
const messages = sysendTestHelper
|
||||
.getAllBroacastMessages()
|
||||
.map(item => item.args[1])
|
||||
|
||||
const message = messages.find(
|
||||
message => message.event === 'action-setHighlights'
|
||||
)
|
||||
|
||||
// synctex is called locally and the result are broadcast for the detached tab
|
||||
expect(sysendTestHelper.getLastBroacastMessage()).to.deep.equal({
|
||||
// NOTE: can't use `.to.deep.include({…})` as it doesn't match the nested array
|
||||
expect(message).to.deep.equal({
|
||||
role: 'detacher',
|
||||
event: 'action-setHighlights',
|
||||
data: { args: [mockHighlights] },
|
||||
|
|
Loading…
Reference in a new issue