import Toolbar from '../../../../../frontend/js/features/history/components/diff-view/toolbar' import { HistoryContextValue } from '../../../../../frontend/js/features/history/context/types/history-context-value' import { Diff } from '../../../../../frontend/js/features/history/services/types/doc' describe('history toolbar', function () { const diff: Diff = { binary: false, docDiff: { highlights: [ { range: { from: 0, to: 3, }, hue: 1, type: 'addition', label: 'label', }, ], doc: 'doc', }, } it('renders viewing mode', function () { const selection: HistoryContextValue['selection'] = { updateRange: { fromV: 3, toV: 6, fromVTimestamp: 1681413775958, toVTimestamp: 1681413775958, }, comparing: false, files: [ { pathname: 'main.tex', operation: 'edited', }, { pathname: 'sample.bib', }, { pathname: 'frog.jpg', }, ], pathname: 'main.tex', } cy.mount(