Fix FeedCarousel test
This commit is contained in:
parent
1e89efebae
commit
edbaf60009
1 changed files with 3 additions and 0 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in a new issue