Commit 97eef848 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera Committed by Paul Slaughter

Set testing_library timeouts to 10 sec

https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50274
parent 2a9cfa06
......@@ -45,9 +45,9 @@ export const getEditorValue = async () => {
return window.monaco.editor.getModel(uri).getValue();
};
const findTreeBody = () => screen.findByTestId('ide-tree-body', {}, { timeout: 5000 });
const findTreeBody = () => screen.findByTestId('ide-tree-body');
const findRootActions = () => screen.findByTestId('ide-root-actions', {}, { timeout: 7000 });
const findRootActions = () => screen.findByTestId('ide-root-actions');
const findFileRowContainer = (row = null) =>
row ? Promise.resolve(row.parentElement) : findTreeBody();
......
......@@ -3,9 +3,7 @@ import { screen } from '@testing-library/dom';
import * as ideHelper from './helpers/ide_helper';
import startWebIDE from './helpers/start';
// https://gitlab.com/gitlab-org/gitlab/-/issues/293654#note_466432769
// eslint-disable-next-line jest/no-disabled-tests
describe.skip('IDE: User opens a file in the Web IDE', () => {
describe('IDE: User opens a file in the Web IDE', () => {
useOverclockTimers();
let vm;
......
......@@ -3,3 +3,4 @@ import './setup_globals';
import './setup_axios';
import './setup_serializers';
import './setup_mock_server';
import './setup_testing_library';
import { configure } from '@testing-library/dom';
configure({ asyncUtilTimeout: 10000 });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment