mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 13:34:28 -04:00
Update dependency cypress to v7 (#1183)
* Update dependency cypress to v7 Signed-off-by: Renovate Bot <bot@renovateapp.com> * Use global beforeEach for config loading Signed-off-by: Erik Michelson <github@erik.michelson.eu> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
010d451f78
commit
b42cb8fc49
27 changed files with 84 additions and 96 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Autocompletion', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
cy.get('.CodeMirror')
|
||||
.click()
|
||||
|
|
|
@ -8,7 +8,6 @@ import { banner } from '../support/config'
|
|||
|
||||
describe('Banner', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visit('/')
|
||||
expect(localStorage.getItem('bannerTimeStamp')).to.be.null
|
||||
})
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Diagram codeblock ', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ import { branding } from '../support/config'
|
|||
const title = 'This is a test title'
|
||||
describe('Document Title', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
cy.get('.btn.active.btn-outline-secondary > i.fa-columns')
|
||||
.should('exist')
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
*/
|
||||
|
||||
describe('Editor mode from URL parameter is used', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
})
|
||||
|
||||
it('mode view', () => {
|
||||
cy.visitTestEditor('view')
|
||||
cy.get('.splitter.left')
|
||||
|
|
|
@ -9,7 +9,6 @@ describe('Export', () => {
|
|||
const testContent = `---\ntitle: ${ testTitle }\n---\nThis is some test content`
|
||||
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
cy.codemirrorFill(testContent)
|
||||
})
|
||||
|
|
|
@ -8,7 +8,6 @@ const imageUrl = 'http://example.com/non-existing.png'
|
|||
|
||||
describe('File upload', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Help Dialog', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ const findHljsCodeBlock = () => {
|
|||
|
||||
describe('Code', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('History', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visit('/history')
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Import markdown file', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||
describe('Intro page', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.intercept('/intro.md', 'test content')
|
||||
cy.visit('/')
|
||||
})
|
||||
|
|
|
@ -8,7 +8,6 @@ import { languages } from '../fixtures/languages'
|
|||
|
||||
describe('Languages', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visit('/')
|
||||
})
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import '../support/index'
|
|||
|
||||
describe('Links Intro', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visit('/')
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Link gets replaced with embedding: ', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('markdown formatted links to', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
@ -50,7 +49,6 @@ describe('markdown formatted links to', () => {
|
|||
|
||||
describe('HTML anchor element links to', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
|
@ -10,7 +10,6 @@ describe('The status bar text length info', () => {
|
|||
const tooMuchTestContent = `${ dangerTestContent }a`
|
||||
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('profile page', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.intercept({
|
||||
url: '/api/v2/tokens',
|
||||
method: 'GET'
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Quote extra tags', function () {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('Short code gets replaced or rendered: ', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ const initLoggedOutTestWithCustomAuthProviders = (cy: Cypress.cy, enabledProvide
|
|||
|
||||
describe('When logged-in, ', () => {
|
||||
it('sign-in button is hidden', () => {
|
||||
cy.loadConfig()
|
||||
cy.visit('/')
|
||||
cy.get('[data-cy=sign-in-button]')
|
||||
.should('not.exist')
|
||||
|
|
|
@ -9,7 +9,6 @@ describe('Toolbar Buttons', () => {
|
|||
const testLink = 'http://hedgedoc.org'
|
||||
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
|
||||
cy.get('.CodeMirror')
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
describe('YAML Array for deprecated syntax of document tags in frontmatter', () => {
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
cy.visitTestEditor()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue