add some tests - closes #10

This commit is contained in:
Rich Harris
2017-12-18 21:39:17 -05:00
committed by GitHub
parent cd8b9ddb14
commit c1b1b3ed63
44 changed files with 11008 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
describe('dev mode', () => {
beforeEach(() => {
cy.visit('/')
});
it('has the correct <h1>', () => {
cy.contains('h1', 'Great success!')
});
it('navigates to /about', () => {
cy.get('nav a').contains('about').click();
cy.url().should('include', '/about');
});
it('navigates to /blog', () => {
cy.get('nav a').contains('blog').click();
cy.url().should('include', '/blog');
});
});