Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>

<h1>Your Name Here</h1>
<h1 class="important">Your Name Here</h1>
<div>
<p>This is a bunch of information about myself. I'm from here and there and discovered my
love of programming when this happend. When I'm not working I'm busy doing this and that.
Expand All @@ -17,9 +17,9 @@ <h1>Your Name Here</h1>
<img src="https://www.breakthrough-pt.com/wp-content/uploads/2014/11/female-default-profile-photo.png" alt="" >

<div >
<h3>Here are some of my Skills!</h3>
<ul>
<h3>Languages</h3>
<h2 class="important" id="skills-header">Here are some of my Skills!</h2>
<ul class="links-list" id="language-list">
<h3 class="important">Languages</h3>
<li>JavaScript</li>
<li>SQL</li>
<li>HTML5</li>
Expand All @@ -28,7 +28,7 @@ <h3>Languages</h3>
</ul>

<ol>
<h3>Libraries</h3>
<h3 class="important">Libraries</h3>
<li>React</li>
<li>PostgreSQL</li>
<li>Node</li>
Expand All @@ -38,12 +38,12 @@ <h3>Libraries</h3>
</div>

<div>
<h3>Hardest Bug So Far</h3>
<h3 class="important">Hardest Bug So Far</h3>
<p>My hardest bug I ever came across was this infinite loop I couldn't escape. </p>
<p>I came up with a totally sick solution though by doing ... </p>
</div>

<h2>Contact Me</h2>
<h2 class="important">Contact Me</h2>
<div>
Email me at: <a href="mailto:[email protected]" target="_top">[email protected]</a>
</div>
Expand Down
87 changes: 80 additions & 7 deletions cypress/integration/styling_spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,80 @@
describe('Styling', () => {
it("tags marked as important are bold and underlined", () => {
cy
.get('.important')
.should('have.css', 'font-weight', '700').and('have.css', 'text-decoration', 'underline')
})
})
describe("Styling", () => {
it("header tags all contain the important class", () => {
cy.get("h1, h2, h3, h4, h5, h6").each((node) =>
expect(node).to.have.class("important")
);
});
it("tags marked as important are bold and underlined", () => {
cy.get(".important")
.should("have.css", "font-weight", "700")
.and("have.css", "text-decoration", "underline solid rgb(0, 0, 255)");
});
it("h2 skills header has the skills-header id and is RebeccaPurple", () => {
cy.get("h2#skills-header")
.contains("Here are some of my Skills!")
.should("have.css", "color", "rgb(102, 51, 153)");
});
// https://developer.mozilla.org/en-US/docs/Web/CSS/Privacy_and_the_:visited_selector
it.skip("links ending in .com are green after visited", () => {
cy.get('a[href="https://github.com"]')
.first()
.click()
.go("back")
.get('a[href="https://github.com"]')
.first()
.should("have.css", "color", "rgb(0,128,0)");
});
// https://developer.mozilla.org/en-US/docs/Web/CSS/Privacy_and_the_:visited_selector
it.skip("links not ending in .com are not green after visited", () => {
cy.get('a[href="https://pursuit.org"]')
.first()
.click()
.go("back")
.get('a[href="https://pursuit.org"]')
.first()
.should("not.have.css", "color", "rgb(0,128,0)");
});
it("tags marked as links-list have a symbol as a bullet point", () => {
cy.get(".links-list").should(
"have.css",
"list-style",
'outside url("https://github.githubassets.com/images/icons/emoji/unicode/1f310.png") disc'
);
});
it("the first child element in all ordered lists are not bold", () => {
cy.get("ol li:first-child").should("not.have.css", "font-weight", "700");
});

it("the last child element in all ordered lists are bold", () => {
cy.get("ol li:last-child").should("have.css", "font-weight", "700");
});
// https://github.com/cypress-io/cypress/issues/311
it.skip("links ending in .com are red when hovered", () => {
cy.get('a[href="https://github.com"]')
.first()
.hover()
.should("have.css", "color", "rgb(255,0,0)");
});
// https://github.com/cypress-io/cypress/issues/311
it.skip("links not ending in .com are orange when hovered", () => {
cy.get('a[href="https://pursuit.org"]')
.first()
.hover()
.should("have.css", "color", "rgb(0,128,0)");
});
it("all text inside the body are centered", () => {
cy.get("body").should("have.css", "text-align", "center");
});

it("tags marked as language-list have italicized font", () => {
cy.get("ul#language-list").should("have.css", "font-style", "italic");
});

it("second p tag in the div has the background color of rgba(0,0,0,.5)", () => {
cy.get("p:nth-child(3)").should(
"have.css",
"background-color",
"rgba(0, 0, 0, 0.5)"
);
});
});
Loading