Skip to content
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

Merged
merged 5 commits into from
Feb 20, 2025
Merged

CORE-670 Switch from Osano to CookieYes #72

merged 5 commits into from
Feb 20, 2025

Conversation

Dantemss
Copy link
Member

@Dantemss Dantemss commented Feb 17, 2025

Component used by Rex

@Dantemss Dantemss self-assigned this Feb 17, 2025
<ManageCookiesLink />
);
});
act(() => { document.dispatchEvent(bannerLoadEvent); });
Copy link
Member Author

@Dantemss Dantemss Feb 17, 2025

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 acts 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.

Copy link
Contributor

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.

@Dantemss Dantemss marked this pull request as ready for review February 17, 2025 16:00
@Dantemss Dantemss requested review from a team and bethshook and removed request for a team February 17, 2025 16:02
@Dantemss Dantemss merged commit 8ba775c into main Feb 20, 2025
3 checks passed
@Dantemss Dantemss deleted the cookieyes branch February 20, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants