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:
renovate[bot] 2021-04-14 22:28:50 +02:00 committed by GitHub
parent 010d451f78
commit b42cb8fc49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 84 additions and 96 deletions

View file

@ -6,7 +6,6 @@
describe('Autocompletion', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
cy.get('.CodeMirror')
.click()

View file

@ -8,7 +8,6 @@ import { banner } from '../support/config'
describe('Banner', () => {
beforeEach(() => {
cy.loadConfig()
cy.visit('/')
expect(localStorage.getItem('bannerTimeStamp')).to.be.null
})

View file

@ -6,7 +6,6 @@
describe('Diagram codeblock ', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -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')

View file

@ -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')

View file

@ -9,7 +9,6 @@ describe('Export', () => {
const testContent = `---\ntitle: ${ testTitle }\n---\nThis is some test content`
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
cy.codemirrorFill(testContent)
})

View file

@ -8,7 +8,6 @@ const imageUrl = 'http://example.com/non-existing.png'
describe('File upload', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -6,7 +6,6 @@
describe('Help Dialog', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -12,7 +12,6 @@ const findHljsCodeBlock = () => {
describe('Code', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -6,7 +6,6 @@
describe('History', () => {
beforeEach(() => {
cy.loadConfig()
cy.visit('/history')
})

View file

@ -6,7 +6,6 @@
describe('Import markdown file', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -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('/')
})

View file

@ -8,7 +8,6 @@ import { languages } from '../fixtures/languages'
describe('Languages', () => {
beforeEach(() => {
cy.loadConfig()
cy.visit('/')
})

View file

@ -8,7 +8,6 @@ import '../support/index'
describe('Links Intro', () => {
beforeEach(() => {
cy.loadConfig()
cy.visit('/')
})

View file

@ -6,7 +6,6 @@
describe('Link gets replaced with embedding: ', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -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()
})

View file

@ -10,7 +10,6 @@ describe('The status bar text length info', () => {
const tooMuchTestContent = `${ dangerTestContent }a`
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -6,7 +6,6 @@
describe('profile page', () => {
beforeEach(() => {
cy.loadConfig()
cy.intercept({
url: '/api/v2/tokens',
method: 'GET'

View file

@ -6,7 +6,6 @@
describe('Quote extra tags', function () {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -6,7 +6,6 @@
describe('Short code gets replaced or rendered: ', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})

View file

@ -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')

View file

@ -9,7 +9,6 @@ describe('Toolbar Buttons', () => {
const testLink = 'http://hedgedoc.org'
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
cy.get('.CodeMirror')

View file

@ -6,7 +6,6 @@
describe('YAML Array for deprecated syntax of document tags in frontmatter', () => {
beforeEach(() => {
cy.loadConfig()
cy.visitTestEditor()
})