overleaf/services/web/cypress/support/component.ts

20 lines
439 B
TypeScript
Raw Normal View History

import 'cypress-plugin-tab'
import '../../frontend/stylesheets/main-style.less'
import './ct/window' // needs to be before i18n
import '../../frontend/js/i18n'
import './shared/commands'
import './shared/exceptions'
import './ct/commands'
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache = new Map()
})
})
afterEach(function () {
cy.window().then(win => {
win.metaAttributesCache?.clear()
})
})