From cdc459401ce7f33adadeef55cb18bd5df79f2b3d Mon Sep 17 00:00:00 2001 From: David Lacourt Date: Fri, 28 Jun 2019 20:33:07 +0000 Subject: [PATCH] first e2e tests for new feature --- cypress/integration/resume.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cypress/integration/resume.js diff --git a/cypress/integration/resume.js b/cypress/integration/resume.js new file mode 100644 index 00000000..f6b9ef52 --- /dev/null +++ b/cypress/integration/resume.js @@ -0,0 +1,28 @@ +describe(`The Resume page`, () => { + + beforeEach(() => { + }); + + it(`should be accessible from url /resume`, () => { + cy.visit('/resume') + cy.get('h1').should('contain', 'Resume') + }) + + it(`should be accessible from a Home page link`, () => { + cy.visit('/') + cy.get('a[href*=resume]').click() + cy.location('pathname').should('contain', '/resume') + cy.get('h1').should('contain', 'Resume') + }) + + it(`should have social links`, () => { + cy.visit('/resume') + cy.get('a[href*=github]').should('exist') + cy.get('a[href*=gitlab]').should('exist') + cy.get('a[href*=stackoverflow]').should('exist') + cy.get('a[href*=linked]').should('exist') + cy.get('a[href*=codepen]').should('exist') + cy.get('a[href*=lacourt.dev]').should('exist') + }) + +}); \ No newline at end of file