Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
farrah-deriv committed Jun 11, 2024
1 parent dc3bfbe commit a94bf6c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ describe('PopoverDropdown', () => {
expect(mockProps.onClick).toHaveBeenCalledWith('value 1');
});

it('should disable the button if advertiser is barred', async () => {
it('should disable the icon if advertiser is barred', async () => {
mockUseIsAdvertiserBarred.mockReturnValue(true);
render(<PopoverDropdown {...mockProps} />);
await userEvent.click(screen.getByTestId('dt_popover_dropdown_icon'));
expect(screen.getByRole('button', { name: 'label 1' })).toBeDisabled();
expect(screen.getByTestId('dt_popover_dropdown_icon')).not.toHaveProperty('onClick');
});
});

0 comments on commit a94bf6c

Please sign in to comment.