Hi there,
So I am using gsap for animation in a NextJs project and there are some component that has little animations that I am trying to test.
To be direct I stimulate a user click interaction in the test and check to see if the "aria-*" attribute or "data-*" attribute has been updated to the correct state when the animation is done but all test fails. I am using the gsap `.then` callback to trigger this update when the animation is done.
It works fine in the dev and prod env but the `.then` callback function fails to run in a test env.
I have created a minimal demo of my issue, please find the link below
https://stackblitz.com/edit/stackblitz-starters-mvcff3?file=app%2Fpage.test.tsx
Thank you.