Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: paragon's Hyperlink no longer accepts a 'content' attribute * test: ensure all act() calls are async * test: Removed "async" from "describe" Returning a Promise from "describe" is not supported. * fix: DiscussionsSettings tests Previous commit revealed several issues with these tests * Don't nest userAction.click in act() -- nested act() statements have indeterminent behaviour. * Use getBy* instead of findBy* with userAction to avoid nested act() statements * Use fireEvent.click when the onClick handlers need to be called * Use queryBy* instead of getBy* when using .toBeInTheDocument or waitForElementToBeRemoved queryBy* return null when the element is not found. * fix: typo in data-testid Warning: React does not recognize the `data-testId` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `data-testid` instead. * test: Use useLocation to test route changes --------- Co-authored-by: Yusuf Musleh <yusuf@opencraft.com>
- Loading branch information