mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Replace document bar with sidebar (#937)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
586969f368
commit
0627e0f551
54 changed files with 1067 additions and 604 deletions
|
@ -10,11 +10,11 @@ describe('Import markdown file', () => {
|
|||
})
|
||||
|
||||
it('import on blank note', () => {
|
||||
cy.get('button#editor-menu-import')
|
||||
cy.get('[data-cy="menu-import"]')
|
||||
.click()
|
||||
cy.get('.import-md-file')
|
||||
cy.get('[data-cy="menu-import-markdown"]')
|
||||
.click()
|
||||
cy.get('div[aria-labelledby="editor-menu-import"] > input[type=file]')
|
||||
cy.get('[data-cy="menu-import-markdown-input"]')
|
||||
.attachFile({ filePath: 'import.md', mimeType: 'text/markdown' })
|
||||
cy.get('.CodeMirror-code > div:nth-of-type(1) > .CodeMirror-line > span > span')
|
||||
.should('have.text', '# Some short import test file')
|
||||
|
@ -25,11 +25,11 @@ describe('Import markdown file', () => {
|
|||
it('import on note with content', () => {
|
||||
|
||||
cy.codemirrorFill('test\nabc')
|
||||
cy.get('button#editor-menu-import')
|
||||
cy.get('[data-cy="menu-import"]')
|
||||
.click()
|
||||
cy.get('.import-md-file')
|
||||
cy.get('[data-cy="menu-import-markdown"]')
|
||||
.click()
|
||||
cy.get('div[aria-labelledby="editor-menu-import"] > input[type=file]')
|
||||
cy.get('[data-cy="menu-import-markdown-input"]')
|
||||
.attachFile({ filePath: 'import.md', mimeType: 'text/markdown' })
|
||||
cy.get('.CodeMirror-code > div:nth-of-type(1) > .CodeMirror-line > span > span')
|
||||
.should('have.text', 'test')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue