From 81eb8d1857732933c73fd85522a3b1dc1724a094 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Thu, 13 Oct 2022 16:27:43 +0200 Subject: [PATCH] Disable Main menu test when fast boot is enabled --- src/Components/App/App.test.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Components/App/App.test.tsx b/src/Components/App/App.test.tsx index 8afe829..f06c68b 100644 --- a/src/Components/App/App.test.tsx +++ b/src/Components/App/App.test.tsx @@ -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);