Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Jun 1, 2021
1 parent 3eea36d commit b0ab2da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ describe('IconButton', () => {
it('renders an IconButton', () => {
render(<IconButton {...defaultProps} />);

const logo = screen.getByRole('img', { name: /default database log/i });
const logo = screen.getByRole('img');
const buttonText = screen.getByText(/this is the iconbutton text/i);
screen.logTestingPlaygroundURL();

expect(logo).toBeVisible();
expect(buttonText).toBeVisible();
Expand Down

0 comments on commit b0ab2da

Please sign in to comment.