Improve tests (#944)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2021-01-11 23:22:11 +01:00 committed by GitHub
parent e0e5f2a7dd
commit 3db6bcf892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 342 additions and 295 deletions

View file

@ -9,9 +9,6 @@ describe('Import markdown file', () => {
cy.visit('/n/test')
cy.get('.btn.active.btn-outline-secondary > i.fa-columns')
.should('exist')
cy.get('.CodeMirror textarea')
.type('{ctrl}a', { force: true })
.type('{backspace}')
})
it('import on blank note', () => {
@ -28,8 +25,11 @@ describe('Import markdown file', () => {
})
it('import on note with content', () => {
cy.get('.CodeMirror textarea')
.type('test\nabc', { force: true })
cy.get('.CodeMirror')
.click()
.get('textarea')
.fill('test\nabc')
cy.get('button#editor-menu-import')
.click()
cy.get('.import-md-file')