mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Reorganize redux and hooks (1/4) (#985)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
bdf8110676
commit
1b7abf9f27
61 changed files with 898 additions and 986 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
describe('Autocompletion', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
cy.get('.CodeMirror')
|
||||
.click()
|
||||
.get('textarea')
|
||||
|
|
|
@ -9,7 +9,7 @@ import { branding } from '../support/config'
|
|||
const title = 'This is a test title'
|
||||
describe('Document Title', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
cy.get('.btn.active.btn-outline-secondary > i.fa-columns')
|
||||
.should('exist')
|
||||
})
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
|
||||
describe('Editor mode from URL parameter is used', () => {
|
||||
it('mode view', () => {
|
||||
cy.visit('/n/features?view')
|
||||
cy.visitTestEditor('view')
|
||||
cy.get('.splitter.left')
|
||||
.should('have.class', 'd-none')
|
||||
cy.get('.splitter.right')
|
||||
.should('not.have.class', 'd-none')
|
||||
})
|
||||
it('mode both', () => {
|
||||
cy.visit('/n/features?both')
|
||||
cy.visitTestEditor('both')
|
||||
cy.get('.splitter.left')
|
||||
.should('not.have.class', 'd-none')
|
||||
cy.get('.splitter.separator')
|
||||
|
@ -22,7 +22,7 @@ describe('Editor mode from URL parameter is used', () => {
|
|||
.should('not.have.class', 'd-none')
|
||||
})
|
||||
it('mode edit', () => {
|
||||
cy.visit('/n/features?edit')
|
||||
cy.visitTestEditor('edit')
|
||||
cy.get('.splitter.left')
|
||||
.should('not.have.class', 'd-none')
|
||||
cy.get('.splitter.right')
|
||||
|
|
|
@ -9,7 +9,7 @@ describe('Export', () => {
|
|||
const testContent = `---\ntitle: ${testTitle}\n---\nThis is some test content`
|
||||
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
cy.codemirrorFill(testContent)
|
||||
})
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ const imageUrl = 'http://example.com/non-existing.png'
|
|||
|
||||
describe('File upload', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
it('doesn\'t prevent drag\'n\'drop of plain text', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
describe('Help Dialog', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
it('ToDo-List', () => {
|
||||
|
|
|
@ -12,7 +12,7 @@ const findHljsCodeBlock = () => {
|
|||
|
||||
describe('Code', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
describe('with just the language', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
describe('Import markdown file', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
it('import on blank note', () => {
|
||||
|
|
|
@ -10,7 +10,7 @@ describe('The status bar text length info', () => {
|
|||
const tooMuchTestContent = `${dangerTestContent}a`
|
||||
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
it('shows the maximal length of the document as number of available characters in the tooltip', () => {
|
||||
|
|
|
@ -9,7 +9,7 @@ describe('Toolbar Buttons', () => {
|
|||
const testLink = 'http://hedgedoc.org'
|
||||
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/test')
|
||||
cy.visitTestEditor()
|
||||
|
||||
cy.get('.CodeMirror')
|
||||
.click()
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
describe('YAML Array for deprecated syntax of document tags in frontmatter', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/n/features')
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
it('is shown when using old syntax', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue