-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORE-670 Switch from Osano to CookieYes #72
Conversation
<ManageCookiesLink /> | ||
); | ||
}); | ||
act(() => { document.dispatchEvent(bannerLoadEvent); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand why I had to do 2 separate act
s here. I thought everything should work with renderer.create()
not in act
. But unless I wrap renderer.create()
in its own act
, the component never renders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need that act
to make sure that hooks and state changes finish before the test runs. otherwise cookieyes never loads and the component renders null.
Component used by Rex