redbadger/website-honestly

View on GitHub
cypress/integration/events-page/events.cypress.js

Summary

Maintainability
A
0 mins
Test Coverage
import { acceptCookiePolicy } from '../shared-utils/utils';

describe('The Red Badger Events page', () => {
  beforeEach(() => {
    cy.server();
    cy.route('GET', '/state.json', 'fixture:state-events.json');
    cy.visit('http://localhost:8080/events');
    acceptCookiePolicy();
  });

  it('loads the events page correctly', () => {
    cy.get('h1').contains('Events');
    cy.matchImageSnapshot();
  });
});