Skip to content

Commit

Permalink
Removed logo from test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Jun 1, 2021
1 parent b0ab2da commit c8b148e
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ import IconButton from 'src/components/IconButton';

const defaultProps = {
buttonText: 'This is the IconButton text',
logo: '/images/icons/sql.svg',
icon: '/images/icons/sql.svg',
};

describe('IconButton', () => {
it('renders an IconButton', () => {
render(<IconButton {...defaultProps} />);

const logo = screen.getByRole('img');
const icon = screen.getByRole('img');
const buttonText = screen.getByText(/this is the iconbutton text/i);
screen.logTestingPlaygroundURL();

expect(logo).toBeVisible();
expect(icon).toBeVisible();
expect(buttonText).toBeVisible();
});
});

0 comments on commit c8b148e

Please sign in to comment.