diff --git a/404.html b/404.html index 9a1e19d..bff8c86 100644 --- a/404.html +++ b/404.html @@ -35,7 +35,7 @@ content="Cybersecurity professional with a background in data science and software development."> - + 404 Page Not Found diff --git a/contact.html b/contact.html index 7350306..8e3e435 100644 --- a/contact.html +++ b/contact.html @@ -96,8 +96,8 @@

Contact Me

PGP Key - PGP Key also on PGP + also on Keybase @@ -118,7 +118,7 @@

Contact Me

Linkedin @tylermneher + href="https://www.linkedin.com/in/tylermneher">@tylermneher Keybase @@ -163,9 +163,8 @@

Contact Me

diff --git a/cypress/e2e/404.cy.js b/cypress/e2e/404.cy.js index d2f3bf6..f5c0bcd 100644 --- a/cypress/e2e/404.cy.js +++ b/cypress/e2e/404.cy.js @@ -1,5 +1,27 @@ -describe("404.html spec", () => { - it("passes", () => { - cy.visit("https://example.cypress.io"); +describe("404", function () { + beforeEach(function () { + cy.visit("/404.html"); + }); + it("Visits the 404 Page", () => { + context("Testing the Body Portfolio link", function () { + cy.get('[data-cy="404-body-portfolio"]').should("be.visible"); + cy.get('[data-cy="404-body-portfolio"]').should("have.attr", "href", "portfolio.html"); + cy.get('[data-cy="404-body-portfolio"]').should("have.text", "Portfolio"); + }); + context("Testing the Body Contact link", function () { + cy.get('[data-cy="404-body-contact"]').should("be.visible"); + cy.get('[data-cy="404-body-contact"]').should("have.attr", "href", "contact.html"); + cy.get('[data-cy="404-body-contact"]').should("have.text", "Contact"); + }); + context("Testing the Footer Contact link", function () { + cy.get('[data-cy="404-footer-contact"]').should("be.visible"); + cy.get('[data-cy="404-footer-contact"]').should("have.attr", "href", "contact.html"); + cy.get('[data-cy="404-footer-contact"]').should("have.text", "Contact Me"); + }); + context("Testing the Footer PGP link", function () { + cy.get('[data-cy="404-footer-pgpkey"]').should("be.visible"); + cy.get('[data-cy="404-footer-pgpkey"]').should("have.attr", "href", "tyler.pubkey.asc"); + cy.get('[data-cy="404-footer-pgpkey"]').should("have.text", "PGP Key"); + }); }); }); diff --git a/cypress/e2e/contact.cy.js b/cypress/e2e/contact.cy.js index 72d8fec..3904847 100644 --- a/cypress/e2e/contact.cy.js +++ b/cypress/e2e/contact.cy.js @@ -1,5 +1,70 @@ -describe("contact.html spec", () => { - it("passes", () => { - cy.visit("https://example.cypress.io"); +describe("Contact", function () { + beforeEach(function () { + cy.visit("/contact.html"); + }); + it("Visits the Contact Page", () => { + // Body Links Tests + context("Testing the Body Portfolio link", function () { + cy.get('[data-cy="contact-body-portfolio"]').should("be.visible"); + cy.get('[data-cy="contact-body-portfolio"]').should("have.attr", "href", "portfolio.html"); + cy.get('[data-cy="contact-body-portfolio"]').should("have.text", "Portfolio"); + }); + context("Testing the Body Home link", function () { + cy.get('[data-cy="contact-body-index"]').should("be.visible"); + cy.get('[data-cy="contact-body-index"]').should("have.attr", "href", "index.html"); + cy.get('[data-cy="contact-body-index"]').should("have.text", "Home"); + }); + + // Table Links Tests + context("Testing the Body Table PGP links", function () { + cy.get('[data-cy="contact-body-table-pgpkey"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-pgpkey"]').should("have.attr", "href", "tyler.pubkey.asc"); + cy.get('[data-cy="contact-body-table-pgpkey"]').should("have.text", "PGP"); + cy.get('[data-cy="contact-body-table-keybasepgpkey"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-keybasepgpkey"]').should("have.attr", "href", "https://keybase.io/tylermneher/pgp_keys.asc"); + cy.get('[data-cy="contact-body-table-keybasepgpkey"]').should("have.text", "Keybase"); + }); + context("Testing the Body Table Resume link", function () { + cy.get('[data-cy="contact-body-table-resume"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-resume"]').should("have.attr", "href", "https://resume.tylermneher.me"); + cy.get('[data-cy="contact-body-table-resume"]').should("have.text", "Resume"); + }); + context("Testing the Body Table GitHub link", function () { + cy.get('[data-cy="contact-body-table-github"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-github"]').should("have.attr", "href", "https://www.github.com/tylermneher"); + cy.get('[data-cy="contact-body-table-github"]').should("have.text", "@tylermneher"); + }); + context("Testing the Body Table GitLab link", function () { + cy.get('[data-cy="contact-body-table-gitlab"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-gitlab"]').should("have.attr", "href", "https://www.gitlab.com/tylermneher"); + cy.get('[data-cy="contact-body-table-gitlab"]').should("have.text", "@tylermneher"); + }); + context("Testing the Body Table LinkedIn link", function () { + cy.get('[data-cy="contact-body-table-linkedin"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-linkedin"]').should("have.attr", "href", "https://www.linkedin.com/in/tylermneher"); + cy.get('[data-cy="contact-body-table-linkedin"]').should("have.text", "@tylermneher"); + }); + context("Testing the Body Table Keybase links", function () { + cy.get('[data-cy="contact-body-table-keybase"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-keybase"]').should("have.attr", "href", "https://keybase.io/tylermneher"); + cy.get('[data-cy="contact-body-table-keybase"]').should("have.text", "@tylermneher"); + }); + context("Testing the Body Table Instagram link", function () { + cy.get('[data-cy="contact-body-table-instagram"]').should("be.visible"); + cy.get('[data-cy="contact-body-table-instagram"]').should("have.attr", "href", "https://www.instagram.com/tylermneher"); + cy.get('[data-cy="contact-body-table-instagram"]').should("have.text", "@tylermneher"); + }); + + // Footer Links Tests + context("Testing the Footer Contact link", function () { + cy.get('[data-cy="contact-footer-contact"]').should("be.visible"); + cy.get('[data-cy="contact-footer-contact"]').should("have.attr", "href", "contact.html"); + cy.get('[data-cy="contact-footer-contact"]').should("have.text", "Contact Me"); + }); + context("Testing the Footer PGP link", function () { + cy.get('[data-cy="contact-footer-pgpkey"]').should("be.visible"); + cy.get('[data-cy="contact-footer-pgpkey"]').should("have.attr", "href", "tyler.pubkey.asc"); + cy.get('[data-cy="contact-footer-pgpkey"]').should("have.text", "PGP Key"); + }); }); }); diff --git a/cypress/e2e/index.cy.js b/cypress/e2e/index.cy.js index 9da89bf..b62cd39 100644 --- a/cypress/e2e/index.cy.js +++ b/cypress/e2e/index.cy.js @@ -1,5 +1,32 @@ -describe("index.html spec", () => { - it("passes", () => { - cy.visit("https://example.cypress.io"); +describe("Homepage", function () { + beforeEach(function () { + cy.visit("/index.html"); + }); + it("Visits the Homepage", () => { + context("Testing the Body Resume link", function () { + cy.get('[data-cy="index-body-resume"]').should("be.visible"); + cy.get('[data-cy="index-body-resume"]').should("have.attr", "href", "https://resume.tylermneher.me"); + cy.get('[data-cy="index-body-resume"]').should("have.text", "Resume"); + }); + context("Testing the Body Portfolio link", function () { + cy.get('[data-cy="index-body-portfolio"]').should("be.visible"); + cy.get('[data-cy="index-body-portfolio"]').should("have.attr", "href", "portfolio.html"); + cy.get('[data-cy="index-body-portfolio"]').should("have.text", "Portfolio"); + }); + context("Testing the Body Contact link", function () { + cy.get('[data-cy="index-body-contact"]').should("be.visible"); + cy.get('[data-cy="index-body-contact"]').should("have.attr", "href", "contact.html"); + cy.get('[data-cy="index-body-contact"]').should("have.text", "Contact"); + }); + context("Testing the Footer Contact link", function () { + cy.get('[data-cy="index-footer-contact"]').should("be.visible"); + cy.get('[data-cy="index-footer-contact"]').should("have.attr", "href", "contact.html"); + cy.get('[data-cy="index-footer-contact"]').should("have.text", "Contact Me"); + }); + context("Testing the Footer PGP link", function () { + cy.get('[data-cy="index-footer-pgpkey"]').should("be.visible"); + cy.get('[data-cy="index-footer-pgpkey"]').should("have.attr", "href", "tyler.pubkey.asc"); + cy.get('[data-cy="index-footer-pgpkey"]').should("have.text", "PGP Key"); + }); }); }); diff --git a/index.html b/index.html index c669b0c..b7cd3b6 100644 --- a/index.html +++ b/index.html @@ -85,9 +85,8 @@

Resume