Disable Main menu test when fast boot is enabled

This commit is contained in:
Eric NGUYEN 2022-10-13 16:27:43 +02:00
parent e97720bc24
commit 81eb8d1857

View file

@ -1,6 +1,7 @@
import * as React from 'react';
import { loadEnv } from 'vite';
import { beforeEach, describe, expect, it } from 'vitest';
import { FAST_BOOT } from '../../utils/default';
import { fireEvent, render, RenderResult, screen } from '../../utils/test-utils';
import { App } from './App';
@ -14,11 +15,19 @@ describe.concurrent('App', () => {
});
it('New editor', async() => {
if (FAST_BOOT) {
return;
}
const start = app.getByText(/Start from scratch/i);
fireEvent.click(start);
}, 10000);
it('Load editor by file', () => {
if (FAST_BOOT) {
return;
}
const load = app.getByText(/Load a configuration file/i);
fireEvent.click(load);