{"size": 561, "ext": "js", "max_stars_repo_path": "cypress/integration/vis-regression/image-snapshot.spec.js", "max_stars_repo_name": "GSA/made-in-america", "max_stars_repo_stars_event_min_datetime": "2022-01-24T21:19:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-31T17:00:34.000Z", "max_issues_repo_path": "cypress/integration/vis-regression/image-snapshot.spec.js", "max_issues_repo_name": "GSA/made-in-america", "max_issues_repo_issues_event_min_datetime": "2021-09-13T20:22:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-11T14:57:37.000Z", "max_forks_repo_path": "cypress/integration/vis-regression/image-snapshot.spec.js", "max_forks_repo_name": "GSA/made-in-america", "max_forks_repo_forks_event_min_datetime": "2021-09-17T16:32:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T13:59:05.000Z"}
{"max_stars_count": 2, "max_issues_count": 46, "max_forks_count": 3, "avg_line_length": 28.05, "max_line_length": 77, "alphanum_fraction": 0.6078431373}
/// <reference types="Cypress" />
const url = 'localhost:4000'

describe('image snapshot', () => {
  // take a screen shot of the home page and compare it to what is documented
  it('homepage should render on desktop', () => {
    cy.viewport(1080, 1200)
    cy.visit(url).then(() => {
      cy.document().toMatchImageSnapshot({ name: 'homepage-desktop' })
    })
  })

  it('homepage should render on mobile', () => {
    cy.viewport(320, 875)
    cy.visit(url).then(() => {
      cy.document().toMatchImageSnapshot({ name: 'homepage-mobile' })
    })
  })
})
