<commit_before>describe('starting a game', function() {
  it('displays the morning screen', function() {
    cy.visit('/')
    cy.get('h1').within(function() {
      cy.queryByText('The Republia Times').should('exist')
    })
  })

  it('starts the first day', function() {
    cy.getByText('Start Work').click()
    cy.get('h1').within(function() {
      cy.queryByText('Day 1').should('exist')
    })
  })
})<commit_msg>Start adding cypress tests for clock<commit_after>describe('starting a game', function() {
  it('displays the morning screen', function() {
    cy.visit('/')
    cy.get('h1').within(function() {
      cy.queryByText('The Republia Times').should('exist')
    })
  })

  it('starts the first day', function() {
    cy.getByText('Start Work').click()
    cy.get('h1').within(function() {
      cy.queryByText('Day 1').should('exist')
    })
  })

  describe('work day clock', function() {
    beforeEach(function() {
      cy.clock()
    })

    afterEach(function() {
      cy.clock().then(clock => {
        clock.restore()
      })
    })

    it('starts the day at 6:00 AM', function() {
      cy.getByLabelText('Work day clock').within(function() {
        cy.queryByText('6:00 AM').should('exist')
      })
    })
  })
})
{'fraction_non_alphanumeric': 0.19743178170144463, 'fraction_numerical': 0.009630818619582664, 'mean_word_length': 3.088524590163934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2388682', 'n_tokens_mistral': 422, 'n_tokens_neox': 402, 'n_words': 74}