security-checklist/cypress/integration/home_spec.js
2019-01-12 17:52:43 -08:00

26 lines
597 B
JavaScript

describe('Home', () => {
before(() => {
cy.visit('/');
});
it('should render footer', () => {
cy.get('[data-cy="footer"]')
.scrollIntoView()
.should('be.visible');
cy.get(`[href="https://github.com/brianlovin/security-checklist"]`).should(
'be.visible'
);
});
it('should render header', () => {
cy.get('[data-cy="header"]')
.scrollIntoView()
.should('be.visible');
cy.get(`[href="/about"]`).should('be.visible');
cy.get(`[href="https://github.com/brianlovin/security-checklist"]`).should(
'be.visible'
);
});
});