-
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.
Signed-off-by: Tyler M. Neher <[email protected]>
- Loading branch information
1 parent
bb98fe0
commit 0b23043
Showing
2 changed files
with
100 additions
and
90 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
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,95 +1,100 @@ | ||
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"); | ||
}); | ||
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"); | ||
}); | ||
context("Testing the Body Table Facebook link", function () { | ||
cy.get('[data-cy="contact-body-table-facebook"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-facebook"]').should("have.attr", "href", "https://www.facebook.com/tylermneher"); | ||
cy.get('[data-cy="contact-body-table-facebook"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table Threads link", function () { | ||
cy.get('[data-cy="contact-body-table-threads"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-threads"]').should("have.attr", "href", "https://www.threads.net/tylermneher"); | ||
cy.get('[data-cy="contact-body-table-threads"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table X link", function () { | ||
cy.get('[data-cy="contact-body-table-x"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-x"]').should("have.attr", "href", "https://www.twitter.com/tylermneher"); | ||
cy.get('[data-cy="contact-body-table-x"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table YouTube link", function () { | ||
cy.get('[data-cy="contact-body-table-youtube"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-youtube"]').should("have.attr", "href", "https://www.youtube.com/@tylermneher"); | ||
cy.get('[data-cy="contact-body-table-youtube"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table Hacker News link", function () { | ||
cy.get('[data-cy="contact-body-table-hackernews"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-hackernews"]').should("have.attr", "href", "https://news.ycombinator.com/user?id=tylermneher"); | ||
cy.get('[data-cy="contact-body-table-hackernews"]').should("have.text", "@tylermneher"); | ||
}); | ||
// 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 ORCID link", function () { | ||
cy.get('[data-cy="contact-body-table-orcid"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-orcid"]').should("have.attr", "href", "https://orcid.org/0000-0003-1288-730X"); | ||
cy.get('[data-cy="contact-body-table-orcid"]').should("have.text", "0000-0003-1288-730X"); | ||
}); | ||
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"); | ||
}); | ||
context("Testing the Body Table Facebook link", function () { | ||
cy.get('[data-cy="contact-body-table-facebook"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-facebook"]').should("have.attr", "href", "https://www.facebook.com/tylermneher"); | ||
cy.get('[data-cy="contact-body-table-facebook"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table Threads link", function () { | ||
cy.get('[data-cy="contact-body-table-threads"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-threads"]').should("have.attr", "href", "https://www.threads.net/tylermneher"); | ||
cy.get('[data-cy="contact-body-table-threads"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table X link", function () { | ||
cy.get('[data-cy="contact-body-table-x"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-x"]').should("have.attr", "href", "https://www.twitter.com/tylermneher"); | ||
cy.get('[data-cy="contact-body-table-x"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table YouTube link", function () { | ||
cy.get('[data-cy="contact-body-table-youtube"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-youtube"]').should("have.attr", "href", "https://www.youtube.com/@tylermneher"); | ||
cy.get('[data-cy="contact-body-table-youtube"]').should("have.text", "@tylermneher"); | ||
}); | ||
context("Testing the Body Table Hacker News link", function () { | ||
cy.get('[data-cy="contact-body-table-hackernews"]').should("be.visible"); | ||
cy.get('[data-cy="contact-body-table-hackernews"]').should("have.attr", "href", "https://news.ycombinator.com/user?id=tylermneher"); | ||
cy.get('[data-cy="contact-body-table-hackernews"]').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"); | ||
// 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"); | ||
}); | ||
}); | ||
}); | ||
}); |