Skip to content

Commit

Permalink
chore: add toast test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Skwierczyński committed Apr 9, 2024
1 parent ec4023a commit b629d52
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ describe('MembershipEntry: Component', () => {
await userEvent.click(screen.getByRole('button', { name: /Change role/i }));
await userEvent.click(screen.getByRole('button', { name: /Member/i }));
expect(requestMock.newData).toHaveBeenCalled();
const toast = await screen.findByTestId('toast-1');
expect(toast).toHaveTextContent('🎉 The user role was updated successfully!');
});
});

0 comments on commit b629d52

Please sign in to comment.