Fix FeedCarousel test

This commit is contained in:
Alex Gleason 2023-01-05 17:58:01 -06:00
parent 1e89efebae
commit edbaf60009
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -78,6 +78,9 @@ describe('<FeedCarousel />', () => {
expect(screen.getAllByTestId('carousel-item-avatar')[0]).toHaveClass('ring-primary-600');
});
// HACK: wait for state change
await new Promise((r) => setTimeout(r, 0));
// Marked as seen, not selected
await userEvent.click(screen.getAllByTestId('carousel-item-avatar')[0]);
await waitFor(() => {