Rewrite tests (#948)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2021-01-15 22:54:43 +01:00 committed by GitHub
parent 9f6b1a9a46
commit 908a5ce984
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 286 additions and 398 deletions

View file

@ -7,8 +7,6 @@
describe('Import markdown file', () => {
beforeEach(() => {
cy.visit('/n/test')
cy.get('.btn.active.btn-outline-secondary > i.fa-columns')
.should('exist')
})
it('import on blank note', () => {
@ -26,10 +24,7 @@ describe('Import markdown file', () => {
it('import on note with content', () => {
cy.get('.CodeMirror')
.click()
.get('textarea')
.fill('test\nabc')
cy.codemirrorFill('test\nabc')
cy.get('button#editor-menu-import')
.click()
cy.get('.import-md-file')