|
@@ -9,19 +9,11 @@ import { EditorProviders } from '../../helpers/editor-providers'
|
|
|
import { mockScope } from './scope'
|
|
import { mockScope } from './scope'
|
|
|
|
|
|
|
|
describe('<EditorLeftMenu />', function () {
|
|
describe('<EditorLeftMenu />', function () {
|
|
|
- before(function () {
|
|
|
|
|
- window.metaAttributesCache = new Map()
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
beforeEach(function () {
|
|
beforeEach(function () {
|
|
|
cy.viewport(800, 800)
|
|
cy.viewport(800, 800)
|
|
|
cy.interceptCompile()
|
|
cy.interceptCompile()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- afterEach(function () {
|
|
|
|
|
- window.metaAttributesCache = new Map()
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
// eslint-disable-next-line mocha/no-skipped-tests
|
|
// eslint-disable-next-line mocha/no-skipped-tests
|
|
|
describe.skip('for non-anonymous users', function () {
|
|
describe.skip('for non-anonymous users', function () {
|
|
|
const overallThemes: OverallThemeMeta[] = [
|
|
const overallThemes: OverallThemeMeta[] = [
|
|
@@ -60,10 +52,6 @@ describe('<EditorLeftMenu />', function () {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- afterEach(function () {
|
|
|
|
|
- window.metaAttributesCache = new Map()
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
it('render full menu', function () {
|
|
it('render full menu', function () {
|
|
|
const scope = mockScope({
|
|
const scope = mockScope({
|
|
|
ui: {
|
|
ui: {
|
|
@@ -297,10 +285,6 @@ describe('<EditorLeftMenu />', function () {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
describe('settings menu', function () {
|
|
describe('settings menu', function () {
|
|
|
- afterEach(function () {
|
|
|
|
|
- window.metaAttributesCache = new Map()
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
it('shows compiler menu correctly', function () {
|
|
it('shows compiler menu correctly', function () {
|
|
|
const scope = mockScope({
|
|
const scope = mockScope({
|
|
|
ui: {
|
|
ui: {
|