mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
23 lines
583 B
TypeScript
23 lines
583 B
TypeScript
|
import OutlineRoot from '../../../../../frontend/js/features/outline/components/outline-root'
|
||
|
|
||
|
describe('<OutlineRoot />', function () {
|
||
|
it('renders outline', function () {
|
||
|
cy.mount(
|
||
|
<OutlineRoot
|
||
|
outline={[{ title: 'Section', line: 1, level: 10 }]}
|
||
|
jumpToLine={cy.stub()}
|
||
|
/>
|
||
|
)
|
||
|
|
||
|
cy.findByRole('tree')
|
||
|
cy.findByRole('link').should('not.exist')
|
||
|
})
|
||
|
|
||
|
it('renders placeholder', function () {
|
||
|
cy.mount(<OutlineRoot outline={[]} jumpToLine={cy.stub()} />)
|
||
|
|
||
|
cy.findByRole('tree').should('not.exist')
|
||
|
cy.findByRole('link')
|
||
|
})
|
||
|
})
|