Disable Main menu test when fast boot is enabled
This commit is contained in:
parent
e97720bc24
commit
81eb8d1857
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue