Skip to content

Commit

Permalink
orcid
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler M. Neher <[email protected]>
  • Loading branch information
tylermneher committed May 10, 2024
1 parent bb98fe0 commit 0b23043
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 90 deletions.
5 changes: 5 additions & 0 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ <h2>Contact Me</h2>
<td><a data-cy="contact-body-table-hackernews"
href="https://news.ycombinator.com/user?id=tylermneher">@tylermneher</a></td>
</tr>
<tr>
<td>ORCID</td>
<td><a data-cy="contact-body-table-orcid"
href="https://orcid.org/0000-0003-1288-730X">0000-0003-1288-730X</a></td>
</tr>

</tbody>
</table>
Expand Down
185 changes: 95 additions & 90 deletions cypress/e2e/contact.cy.js
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");
});
});
});
});

0 comments on commit 0b23043

Please sign in to comment.