{"size": 493, "ext": "js", "max_stars_repo_path": "cypress/integration/Thumbnails.test.js", "max_stars_repo_name": "agustincastro/react-carousel", "max_stars_repo_stars_event_min_datetime": "2018-01-08T10:42:02.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-27T00:53:24.000Z", "max_issues_repo_path": "cypress/integration/Thumbnails.test.js", "max_issues_repo_name": "agustincastro/react-carousel", "max_issues_repo_issues_event_min_datetime": "2018-04-23T13:00:05.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-29T10:11:50.000Z", "max_forks_repo_path": "cypress/integration/Thumbnails.test.js", "max_forks_repo_name": "agustincastro/react-carousel", "max_forks_repo_forks_event_min_datetime": "2018-01-09T11:21:48.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-17T03:06:18.000Z"}
{"max_stars_count": 1055, "max_issues_count": 420, "max_forks_count": 214, "avg_line_length": 24.65, "max_line_length": 57, "alphanum_fraction": 0.5679513185}
describe('Thumbnails', () => {
  beforeEach(() => {
    cy.visit('/docs/examples/thumbnails');

    cy.get('.BrainhubCarouselItem--active')
      .children('img')
      .should('have.attr', 'src')
      .and('contain', 'mona');
  });

  it('changes slide on thumbnail click', () => {
    cy.get('.BrainhubCarousel__thumbnail').eq(2).click();

    cy.get('.BrainhubCarouselItem--active')
      .children('img')
      .should('have.attr', 'src')
      .and('contain', 'starry-night');
  });
});
