Skip to content

Commit

Permalink
[Lens] fix flaky long running test (elastic#196725)
Browse files Browse the repository at this point in the history
## Summary

Fixes elastic#192476
Due the the fact type function is quite slow but irreplaceable here +
the DOM tree we're rendering here is very big, I think the best option
is to up the timeout limit. On average this test is around 1s long
though. (We're setting the limit to 10s)
  • Loading branch information
mbondyra authored Oct 18, 2024
1 parent 8c0ee58 commit ce41bf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ describe('FormBasedDimensionEditor', () => {
// // press arrow up to go back to the beginning
await userEvent.type(comboBoxInput, '{ArrowUp}{ArrowUp}');
expect(getVisibleFieldSelectOptions()).toEqual(allOptions.slice(8));
});
}, 10000); // this test can be long running due to a big tree we're rendering and userEvent.type function that is slow

it('should hide fields that have no data', () => {
(useExistingFieldsReader as jest.Mock).mockImplementationOnce(() => {
Expand Down

0 comments on commit ce41bf1

Please sign in to comment.