Skip to content

Commit

Permalink
fix: sidepanel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMelox committed Dec 16, 2024
1 parent 8311bd9 commit d36d482
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ describe('SidePanel', () => {
);
const outerElement = container.querySelector(`.${blockClass}`);
await act(() => userEvent.click(closeIconButton));
fireEvent.animationStart(outerElement);
fireEvent.animationEnd(outerElement);
rerender(<SlideIn animateTitle={false} placement="right" open={false} />);
await act(() => fireEvent.animationStart(outerElement));
await act(() => fireEvent.animationEnd(outerElement));
await act(() =>
rerender(<SlideIn animateTitle={false} placement="right" open={false} />)
);
const updatedStyles = getComputedStyle(pageContent);
expect(updatedStyles.marginInlineEnd).toBe('0');
});
Expand Down

0 comments on commit d36d482

Please sign in to comment.