Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 6 forks source link

Occasional test failure (src/button/__tests__/Button.test.tsx) #379

Closed cg-julian-taylor closed 1 month ago

cg-julian-taylor commented 1 year ago

Describe the bug On occasion when running yarn test (src/button/tests/Button.test.tsx) fails on line 136. Could be related to the handleClick() setTimeout.

To Reproduce Steps to reproduce the behavior:

  1. Run yarn test
  2. Keep running the above command until (src/button/tests/Button.test.tsx) fails (line 136).

Expected behavior The test should run every time. However on occasions it fails.

Screenshots

Screenshot 2022-12-20 at 11 56 02

Additional context Occurs in CLI

git checkout release/0.8
git pull
git checkout -b 'feature/fix-random-failure-test'
daniele-zurico commented 1 month ago

closed by https://github.com/Capgemini/dcx-react-library/pull/673