-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,53 @@ | ||
/// <reference types="cypress" /> | ||
|
||
context('site', () => { | ||
context("site", () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
|
||
it('should have the correct meta title', () => { | ||
cy.title().should('eq', 'clintp.xyz | my bio in two mouse clicks or less') | ||
}) | ||
|
||
it('should have the correct meta description', () => { | ||
cy.document().get('head meta[name="description"]') | ||
.should('have.attr', 'content', 'my bio in two mouse clicks or less') | ||
}) | ||
|
||
it('should have the correct opening page title', () => { | ||
cy.get('h1').contains('clintp.xyz') | ||
}) | ||
|
||
it('should have my email address somewhere so I can be contacted', () => { | ||
cy.contains('hello@clintp.xyz') | ||
}) | ||
|
||
it('should have a working link to my resume', () => { | ||
cy.get('a').contains('Resume').should('have.attr', 'href', '/Resume_ClintPlummer_ENMR.pdf').then(($anchor) => { | ||
cy.request($anchor.attr('href')).its('status').should('eq', 200) | ||
}) | ||
}) | ||
|
||
it('should have a working link to my ipynb', () => { | ||
cy.get('a').contains('ipynb').should('have.attr', 'href', 'https://github.com/yuhonas/clintp.xyz/blob/main/docs/public/Resume_ClintPlummer_ENMR.ipynb').then(($anchor) => { | ||
cy.request($anchor.attr('href')).its('status').should('eq', 200) | ||
}) | ||
}) | ||
|
||
it('should have a link to my linkedin', () => { | ||
cy.get('a').contains('Linked-In').should('have.attr', 'href', 'https://www.linkedin.com/in/clint-plummer/') | ||
}) | ||
|
||
}) | ||
cy.visit("/"); | ||
}); | ||
|
||
it("should have the correct meta title", () => { | ||
cy.title().should("eq", "clintp.xyz | my bio in two mouse clicks or less"); | ||
}); | ||
|
||
it("should have the correct meta description", () => { | ||
cy.document() | ||
.get('head meta[name="description"]') | ||
.should("have.attr", "content", "my bio in two mouse clicks or less"); | ||
}); | ||
|
||
it("should have the correct opening page title", () => { | ||
cy.get("h1").contains("clintp.xyz"); | ||
}); | ||
|
||
it("should have my email address somewhere so I can be contacted", () => { | ||
cy.contains("hello@clintp.xyz"); | ||
}); | ||
|
||
it("should have a working link to my resume", () => { | ||
cy.get("a") | ||
.contains("Resume") | ||
.should("have.attr", "href", "/Resume_ClintPlummer_ENMR.pdf") | ||
.then(($anchor) => { | ||
cy.request($anchor.attr("href")).its("status").should("eq", 200); | ||
}); | ||
}); | ||
|
||
it("should have a working link to my ipynb", () => { | ||
cy.get("a") | ||
.contains("ipynb") | ||
.should( | ||
"have.attr", | ||
"href", | ||
"https://github.com/yuhonas/clintp.xyz/blob/main/docs/public/Resume_ClintPlummer_ENMR.ipynb" | ||
) | ||
.then(($anchor) => { | ||
cy.request($anchor.attr("href")).its("status").should("eq", 200); | ||
}); | ||
}); | ||
|
||
it("should have a link to my linkedin", () => { | ||
cy.get("a[href='https://www.linkedin.com/in/clint-plummer/']").should( | ||
"exist" | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters