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

Jest Test - issue "Focus" #1586

Closed hanoj-budime closed 1 year ago

hanoj-budime commented 1 year ago

Describe the bug I'm facing issue - Jest test case - after updating to Halstack 9 Dialog-Box, Any idea ?

To Reproduce

npm run test:ci

Example:

  1. Install the @dxc-technology\halstack-react@9.0.0 dependencies and run the app.

Screenshots image

GomezIvann commented 1 year ago

Hi @HanojHanu!

After some research, it looks like it is a problem related to the jsdom library of Jest (there's an issue with this https://github.com/dperini/nwsapi/issues/81), which uses internally another library called nwsapi that has some troubles interpreting query with :not(...) selector.

We have been working on a workaround for this problem. You can follow the progress here https://github.com/dxc-technology/halstack-react/pull/1595.

Thanks for the feedback and the patience!

hanoj-budime commented 1 year ago

image

it's still not working..

hanoj-budime commented 1 year ago

@GomezIvann

hanoj-budime commented 1 year ago

image

Fixed & Working fine in 10.0.0v

@GomezIvann thanks

GomezIvann commented 1 year ago

Great!! 🚀