Skip to content

Commit

Permalink
test: Avatar Drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleDallas committed May 5, 2023
1 parent ef9b685 commit c0eff66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Account/AvatarDrawer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('AvatarDrawer component', () => {
const user = {}
const onClose = vi.fn()

it('renders the component with the correct text', () => {
it('renders the component with the correct avatar', () => {
render(
<Provider store={store}>
<AvatarDrawer user={user} visible={true} onClose={onClose} />
Expand All @@ -24,9 +24,9 @@ describe('AvatarDrawer component', () => {
expect(screen.getByText('Change')).toBeInTheDocument();
fireEvent.click(screen.getByText('Change'));
fireEvent.click(screen.getByText('Cancel'));
fireEvent.click(screen.getByTestId('avatar1'));
fireEvent.click(screen.getAllByTestId('avatar2')[10]);
fireEvent.click(screen.getByTestId('avatar3'));
fireEvent.click(screen.getAllByTestId('avatar1')[0]);
fireEvent.click(screen.getAllByTestId('avatar2')[0]);
fireEvent.click(screen.getAllByTestId('avatar3')[0]);
});

});

0 comments on commit c0eff66

Please sign in to comment.