Skip to content

Fix avatar image test #564

@hiddeottens

Description

@hiddeottens
// TODO: find a way to wait for image to be loaded
test.skip('it shows no initials when supplying an image src', () => {
  const testName = 'John Deo';
  const intitials = 'JD';
  const avatarLink =
    'https://st.depositphotos.com/3244893/5106/v/950/depositphotos_51060005-stock-illustration-cute-little-panda-icon.jpg';

  render(<Avatar name={testName} src={avatarLink} />);

  expect(screen.queryByText(intitials)).not.toBeInTheDocument();
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions