dxc-technology / halstack-react

Library of components for building SPAs with React and Halstack Design System
https://developer.dxc.com/halstack/
Apache License 2.0
15 stars 14 forks source link

Increased timeout inside `FileInput` tests #1934

Closed Mil4n0r closed 7 months ago

Mil4n0r commented 7 months ago

Checklist (Check off all the items before submitting)

Description I realised that, in local environment, when running all the functional tests at once (using npm run test), a timeout error was sometimes being thrown at FileInput.test.js. The default timer for waitFor is set to 1000ms, so increasing it to 2500ms allows for more consistency when running tests. This should not be the final approach for this due to existing room for improvement of functional tests efficiency (wrapping tests inside act as recommended, configuring parallel execution, identifying and solving specific bottlenecks...) However, I considered this to be an non-costly and appropiate workaround for now.